MCQ Single Best Answer Not Set

QWhat 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); 
        }
}

ID: #2126 Operator in Java 889 views
Question Info
#2126Q ID
Not SetDifficulty
Operator in JavaTopic

Choose the Best Option

Click any option to instantly check if you're correct.

  • A 12
  • B 11
  • C 10
  • D Compilation Error
Correct Answer: Option C

Explanation

10

Share This Question

Challenge a friend or share with your study group.