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)- A82% (37)
- B4% (2)
- C2% (1)
- D2% (1)
- E9% (4)
Explanation
You've hit your session limit · resets 10:20pm (America/New_York)
Community Discussion
No community discussion yet for this question.