Quiz Discussion

What will be the output of the following Java program?

class Output 
{
        public static void main(String args[]) 
        {    
           final int a=10,b=20;
          while(a<b)
          {
 
          System.out.println("Hello");
          }
          System.out.println("World");
 
        } 
}

 

Course Name: Java

  • 1]

    Hello

  • 2]

    run time error

  • 3]

    Hello world

  • 4]

    compile time error

Solution
No Solution Present Yet

Top 5 Similar Quiz - Based On AI&ML

Quiz Recommendation System API Link - https://fresherbell-quiz-api.herokuapp.com/fresherbell_quiz_api

# Quiz
1
Discuss

The while loop repeats a set of code while the condition is not met?

  • 1]

    True

  • 2]

    False

Solution
# Quiz