Question
What is the output of this program?class mainclass {public static void main(String args[]) {boolean var1 = true;boolean var2 = false;if (var1)System.out.println(var1);elseSystem.out.println(var2);} }
Answer: Option C
Was this answer helpful ?
true
Was this answer helpful ?
Submit Solution