nerdexam
Oracle

1Z0-809 · Question #169

Given: public class Test { public static void main(String[] args) { boolean x = new Boolean(args[0]); boolean b = new Boolean(args[1]); System.out.println(x + " " + b); } } And given the commands…

The correct answer is A. true false. You've hit your session limit · resets 10:20pm (America/New_York)

Question

Given: public class Test { public static void main(String[] args) { boolean x = new Boolean(args[0]); boolean b = new Boolean(args[1]); System.out.println(x + " " + b); } } And given the commands: javac Test.java java Test TRUE null What is the result?

Options

  • Atrue false
  • Bfalse false
  • CA ClassCastException is thrown at runtime.
  • DTRUE null
  • Etrue true

How the community answered

(45 responses)
  • A
    82% (37)
  • B
    4% (2)
  • C
    2% (1)
  • D
    2% (1)
  • E
    9% (4)

Explanation

You've hit your session limit · resets 10:20pm (America/New_York)

Community Discussion

No community discussion yet for this question.

Full 1Z0-809 Practice