Question: Question 7 What is the message that will be printed out after executing the following code public class Question7{ public static void main(String[] args) {
Question 7 What is the message that will be printed out after executing the following code public class Question7{ public static void main(String[] args) { // TODO Auto-generated method stub int x=5y = 10; if (x>5 && y>=2) System.out.println("Class 1"); else if (x5) System.out.println(" Class 2"); else System.out.println("Class 3"); Class 2 None of the mentioned answers Class 1 Class 3
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
