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);
}
}
class Output
{
public static void main(String args[])
{
String str = "TRUE";
boolean x = Boolean.valueOf(str);
System.out.print(x);
}
}
β
Correct Answer: (A)
True