πŸ“Š JAVA
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
πŸ’¬ Discuss
βœ… Correct Answer: (C) 10

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
172
Total Visits
πŸ“½οΈ
4 y ago
Published
πŸŽ–οΈ
Shivam
Publisher
πŸ“ˆ
96%
Success Rate