Site Search:

Flash Card List 3 -- Card 3

Prev Next


How many compile error in the following code snippets?
  4     System.out.print(Boolean.parseBoolean("true"));
  5     System.out.print(Boolean.parseBoolean("True"));
  6     System.out.print(Boolean.parseBoolean("TRUE"));
  7     System.out.print(Boolean.valueOf("TRUE"));
  8     System.out.print(Boolean.valueOf("True"));
  9     System.out.print(Boolean.valueOf("true"));


0 compile error, the output is truetruetruetruetruetrue