January 22, 2021 by admin Latest Updated Oracle 1Z0-808 practice test Welcome to your Latest Updated Oracle 1Z0-808 practice test QUESTION 1 Given the following class declarations:1.public abstract class Animal2.public interface Hunter3.public class Cat extends Animal implements, Hunter4.public class Tiger extends CatWhich answer fails to compile? A. Option A B. Option B C. Option C D. Option D E. Option E None 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? A. 1 B. 2 C. 3 D. 4 None QUESTION 3 Given the code fragments:Which code fragment, when inserted at line ni, enables the code to print Hank? A. checkAge (iList, ( ) -> p. get Age ( ) > 40); B. checkAge(iList, Person p -> p.getAge( ) > 40); C. checkAge (iList, p -> p.getAge ( ) > 40); D. checkAge(iList, (Person p) -> { p.getAge() > 40; }); None QUESTION 4 Given: What is the result? A. 1 B. 1 C. 2 D. Compilation fails E. The loop executes infinite times None QUESTION 5 Given the code fragment:Which code fragment, when inserted at line 9, enables the code to print true? A. String str2 = str1; B. String str2 = new String (str1); C. String str2 = sb1. toString (); D. String str2 = "Duke"; None QUESTION 6 Given the code fragment: Which code fragment, when inserted at // insert code here, enables the code to compile and print a bc? A. List update (String[] strs) B. Static ArrayListupdate(String [] strs) C. Static List update (String [] strs) D. Static void update (String[] strs) E. ArrayList static update(String [] strs) None QUESTION 7 Given the code fragment: What is the result? A. Jesse 25 Walter 52 B. Compilation fails only at line n1 C. Compilation fails only at line n2 D. Compilation fails at both line n1 and line n2 None QUESTION 8 Given: A. Option A B. Option B C. Option C D. Option D E. Option E F. Option F QUESTION 9 Given the code in a file Traveler.java: And the commands: Javac Traveler.java Java Traveler Java Duke What is the result? A. Happy Journey! Duke B. Happy Journey! Java C. An exception is thrown at runtime D. The program fails to execute due to a runtime error None QUESTION 10 Which two statements are true? (Choose two.) A. Error class is unextendable. B. Error class is extendable C. Error is a RuntimeException D. Error is an Exception E. Error is a Throwable. QUESTION 11 Which statement is/are true? A. Default constructor only contains "super();" call. II. We can\\'t use any access modifier with a constructor. III. A constructor should not have a return type. B. Only I. C. Only II. D. Only I and II. E. Only I and III. F. AIL None QUESTION 12 Given:What is the result? A. Base DerivedA B. Base DerivedB C. DerivedB DerivedB D. DerivedB DerivedA E. A classcast Except ion is thrown at runtime. None QUESTION 13 Which of the following will print current time? A. System.out.print(new LocalTime()-now0); B. System.out.print(new LocalTime()); C. System.ouLprint(LocalTime.now()); D. System.ouLprint(LocalTime.today()); E. None of the above. None Time's up