Q. Choose the correct usage of boolean literal in the options below.

  • (A) boolean b= false;
  • (B) boolean b= 2<4; //2<4 is true;
  • (C) if(true) { System.out.println("HELLO"); }
  • (D) All the above
πŸ’¬ Discuss
βœ… Correct Answer: (D) All the above

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
272
Total Visits
πŸ“½οΈ
4 y ago
Published
πŸŽ–οΈ
Ram Sharma
Publisher
πŸ“ˆ
97%
Success Rate