A

Admin • 802.91K Points
Coach

Q. What is the output of the following program?

Code:
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);
}
}
  • (A) 12
  • (B) 11
  • (C) 10
  • (D) Compilation Error
  • Correct Answer - Option(C)
  • Views: 3
  • Filed under category Java
  • Hashtags:

No solution found for this question.
Add Solution and get +2 points.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.