πŸ“Š JAVA
Q. What will be the output of the following Java program?
class Output
{
public static void main(String args[])
{
String str = "true false";
boolean x = Boolean.parseBoolean(str);
System.out.print(x);
}
}
  • (A) True
  • (B) False
  • (C) System Dependent
  • (D) Compilation Error
πŸ’¬ Discuss
βœ… Correct Answer: (B) False

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
113
Total Visits
πŸ“½οΈ
12 mo ago
Published
πŸŽ–οΈ
Bhagwan Das
Publisher
πŸ“ˆ
89%
Success Rate