Questions for the 1Z0-811 were updated on : Dec 01 ,2025
Given the contents of the Test.java file:
What is the result?
C
Given:
What is the result?
D
Given:
What is the output?
D
Which two components can class declarations include?
C, D
Explanation:
Reference: https://docs.oracle.com/javase/tutorial/java/javaOO/classdecl.html
Which package would you import to use the Random class?
C
Explanation:
Reference: https://www.educative.io/edpresso/how-to-generate-random-numbers-in-java
Given the code fragment:
What is the result?
A
Given the code fragment:
What is the result?
A.
a memory address1 in hexadecimal number format
a memory address2 in hexadecimal number format
B.
10, 15
[10, 15]
C.
0, 10, 15
[10, 15, null]
D.
a memory address in hexadecimal number format
[10, 15]
D
Given the code fragment:
What is the output?
C
Given the code fragment:
What is the result?
D
Given the code fragment:
What is the result?
A.
false
true
B.
true
true
C.
false
false
D.
A runtime exception is thrown
B
Identify three features of the Java programming language.
A, C, E
Explanation:
Reference: https://www.tutorialspoint.com/What-are-the-major-features-of-Java-programming
Given the code fragment:
What is the result?
A
Identify three advantages of object-oriented programming.
B, D, E
Explanation:
Reference:
https://www.tutorialspoint.com/object_oriented_analysis_design/ooad_quick_guide.htm
Given the code fragment:
What is the result?
B
Given the code fragment:
Which statement, when inserted at line n1, enables the code to print 0 2 4 6 8 10?
D