R

Ritu Singhal • 4.36K Points
Extraordinary

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
  • Correct Answer - Option(A)
  • Views: 45
  • Filed under category JAVA

No solution found for this question.
Add Solution and get +2 points.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.


Question analytics