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");
}
}
Hello
run time error
Hello world
compile time error
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?
Solution |
# | Quiz |
Copyright © 2020 Inovatik - All rights reserved