V

Vinay • 28.75K Points
Instructor II

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: 14
  • Filed under category JAVA

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.

Learn All JAVA MCQs


Question analytics