Live quiz

java - Part 32

Question 1 of 25 Hints left: 3
Q1

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
  • B
  • C
  • D