Q. Find the output of the following code.

Code:
if(1 + 1 + 1 + 1 + 1 == 5){
  System.out.print(“TRUE”);
}
else{
  System.out.print(“FALSE”);
}
  • (A) FALSE
  • (B) TRUE
  • (C) Compile error
  • (D) None
πŸ’¬ Discuss
βœ… Correct Answer: (B) TRUE

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
217
Total Visits
πŸ“½οΈ
4 y ago
Published
πŸŽ–οΈ
Mahesh Chandra
Publisher
πŸ“ˆ
93%
Success Rate