Welcome to your Latest Updated Oracle 1Z0-808 practice test
QUESTION 1
Given the following class declarations:
1.
public abstract class Animal
2.
public interface Hunter
3.
public class Cat extends Animal implements, Hunter
4.
public class Tiger extends Cat
Which answer fails to compile?
QUESTION 2
Given:
public class Marklist {
int num;
public static void graceMarks(Marklist obj4) {
obj4.num += 10;
}
public static void main(String[] args) {
MarkList obj1 = new MarkList();
MarkList obj2 = obj1;
MarkList obj1 = null;
obj2.num = 60;
graceMarks(obj2);
}
}
How many objects are created in the memory runtime?
QUESTION 3
Given the code fragments:
![[2021.1] lead4pass 1z0-808 practice test q3](https://www.passexamleader.com/wp-content/uploads/2021/01/q3-2.jpg)
Which code fragment, when inserted at line ni, enables the code to print Hank?
QUESTION 4
Given:
![[2021.1] lead4pass 1z0-808 practice test q4](https://www.passexamleader.com/wp-content/uploads/2021/01/q4-1.jpg)
What is the result?
QUESTION 5
Given the code fragment:
![[2021.1] lead4pass 1z0-808 practice test q5](https://www.passexamleader.com/wp-content/uploads/2021/01/q5-2.jpg)
Which code fragment, when inserted at line 9, enables the code to print true?
QUESTION 6
Given the code fragment:
![[2021.1] lead4pass 1z0-808 practice test q6](https://www.passexamleader.com/wp-content/uploads/2021/01/q6-3.jpg)
Which code fragment, when inserted at // insert code here, enables the code to compile and print a bc?
QUESTION 7
Given the code fragment:
![[2021.1] lead4pass 1z0-808 practice test q7](https://www.passexamleader.com/wp-content/uploads/2021/01/q7-2.jpg)
What is the result?
QUESTION 8
Given:
QUESTION 9
Given the code in a file Traveler.java:
![[2021.1] lead4pass 1z0-808 practice test q9](https://www.passexamleader.com/wp-content/uploads/2021/01/q9-1.jpg)
And the commands: Javac Traveler.java Java Traveler Java Duke What is the result?
QUESTION 10
Which two statements are true? (Choose two.)
QUESTION 11
Which statement is/are true?
QUESTION 12
Given:
![[2021.1] lead4pass 1z0-808 practice test q12](https://www.passexamleader.com/wp-content/uploads/2021/01/q12.jpg)
What is the result?
QUESTION 13
Which of the following will print current time?