Home »
Unlabelled »
What is the output of following block of program ? boolean var = false; if(var = true) { System.out.println(“TRUE”); } else { System.out.println(“FALSE”); } | JDBC
What is the output of following block of program ? boolean var = false; if(var = true) { System.out.println(“TRUE”); } else { System.out.println(“FALSE”); } | JDBC
A. TRUE
B. FALSE
C. Compilation Error
D. Run-time Error
Ans: A
No comments:
Post a Comment