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

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
89
Total Visits
πŸ“½οΈ
1 y ago
Published
πŸŽ–οΈ
Ritu Singhal
Publisher
πŸ“ˆ
85%
Success Rate