January 22, 2021 by admin Latest Updated Oracle 1Z0-808 practice test Welcome to your Latest Updated Oracle 1Z0-808 practice test QUESTION 1Given 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 AB. Option BC. Option CD. Option DE. Option E QUESTION 2Given: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. 1B. 2C. 3D. 4 QUESTION 3Given 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; }); QUESTION 4Given: What is the result?A. 1B. 1C. 2D. Compilation failsE. The loop executes infinite times QUESTION 5Given 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"; QUESTION 6Given 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) QUESTION 7Given the code fragment: What is the result?A. Jesse 25 Walter 52B. Compilation fails only at line n1C. Compilation fails only at line n2D. Compilation fails at both line n1 and line n2 QUESTION 8Given: A. Option A B. Option B C. Option C D. Option D E. Option E F. Option F QUESTION 9Given the code in a file Traveler.java: And the commands: Javac Traveler.java Java Traveler Java Duke What is the result?A. Happy Journey! DukeB. Happy Journey! JavaC. An exception is thrown at runtimeD. The program fails to execute due to a runtime error QUESTION 10Which 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 11Which 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 QUESTION 12Given:What is the result?A. Base DerivedAB. Base DerivedBC. DerivedB DerivedBD. DerivedB DerivedAE. A classcast Except ion is thrown at runtime. QUESTION 13Which 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. Time is Up!