Java MCQ - English
What is the output of the following program ?class Numbers{
public static void main(String args[])
{
int a=20, b=10;
if((a < b) && (b++ < 25))
{ System.out.println("This is any language logic");
}
System.out.println(b);
}
}
12
11
10
Compilation Error
Answer : C
View More Related Question
1) What will be the output of the above fraction of code ?int ++a = 100 ;
System.out.println( ++a ) ;
100
Displays error as ++a is not enclosed in double quotes in println statement
Compiler displays error as ++a is not a valid identifier
None of these
View Answer
2) When one of the operands is real and the other is integer, the expression is called a ……………………. expression.
3) What will be result of the result of the expression -14%-3
4) Which of the following can be operands of arithmetic operators?
5) Select from among the following character escape code which is not available in Java.