What will be the output of the following Java program?
class Output
{
public static void main(String args[])
{
int a = 5;
int b = 10;
first:
{
second:
{
third:
{
if (a == b >> 1)
break second;
}
System.out.println(a);
}
System.out.println(b);
}
}
}
5 10
10 5
5
10
Quiz Recommendation System API Link - https://fresherbell-quiz-api.herokuapp.com/fresherbell_quiz_api
# | Quiz |
---|---|
1
Discuss
|
What is the valid data type for variable “a” to print “Hello World”?
Solution |
2
Discuss
|
Which of these selection statements test only for equality?
Solution |
3
Discuss
|
Which of this statement is incorrect?
Solution |
# | Quiz |
Copyright © 2020 Inovatik - All rights reserved