Want to pass your Java Foundations 1Z0-811 exam in the very first attempt? Try Pass2lead! It is equally effective for both starters and IT professionals.
VCE
Given the code fragment:

Which code fragment can be inserted at line n1 to enable the code to print 0.0?
A. Ball b = null;
B. weight = 0.0;
C. Ball.weight = 0.0;
D. Ball b = new Ball(0.0);
E. Ball b = new Ball();
Given the contents of Student.java:

Which statement is true?
A. The commands: javac Student.java java Student Richard William Java throw an error about a missing Course.class file.
B. The commands: javac Course.java javac Student.java java Course java Student "Richard William" Java are used to print Richard William is studying Java.
C. The commands: javac Student.java java Student Richard William Java are used to print Richard William is studying Java.
D. The commands: javac Student.java java Student "Richard William" Java are used to print Richard William is studying Java.
Given:

What is the output?
A. 1 2 3 aaaa
B. 1 2 aaa
C. Compilation fails
D. a