1z0-808 Java SE 8 Programmer I Dumps

If you are looking for free 1z0-808 dumps than here we have some sample question answers available. You can prepare from our Oracle 1z0-808 exam questions notes and prepare exam with this practice test. Check below our updated 1z0-808 exam dumps.

DumpsGroup are top class study material providers and our inclusive range of 1z0-808 Real exam questions would be your key to success in Oracle Oracle Java Certification Exam in just first attempt. We have an excellent material covering almost all the topics of Oracle 1z0-808 exam. You can get this material in Oracle 1z0-808 PDF and 1z0-808 practice test engine formats designed similar to the Real Exam Questions. Free 1z0-808 questions answers and free Oracle 1z0-808 study material is available here to get an idea about the quality and accuracy of our study material.


discount banner

Sample Question 4

Which two code fragments cause a compilation error? (Choose two.)

A. float flt = 100.00F;
B. float flt = (float) 1_11.00;
C. Float flt = 100.00;
D. double y1 = 203.22;float flt = y1;
E. int y2 = 100;float flt = (float) y2 ;


Sample Question 5

Which two code fragments cause compilation errors? (Choose two.)

A. double y1 = 203.22; float fit = y1;
B. float fit = (float) 1_11.00;
C. Float fit = 100.00;
D. int y2 = 100;float fit = (float) y2;
E. float fit = 100.00F;


Sample Question 6

Which three statements are true about the structure of a Java class? (Choose three.)

A. A class cannot have the same name as its field.
B. A public class must have a main method.
C. A class can have final static methods.
D. A class can have overloaded private constructors.
E. Fields need to be initialized before use.
F. Methods and fields are optional components of a class.


Sample Question 7

Which three statements are true about exception handling? (Choose three.)

A. Only unchecked exceptions can be rethrown.
B. All subclasses of the RuntimeException class are not recoverable.
C. The parameter in a catch block is of Throwable type.
D. All subclasses of the RuntimeException class must be caught or declared to be thrown.
E. All subclasses of the RuntimeException class are unchecked exceptions.
F. All subclasses of the Error class are not recoverable.


Sample Question 8

Which statement is true about the switch statement?

A. It must contain the default section.
B. The break statement, at the end of each case block, is mandatory.
C. Its case label literals can be changed at runtime.
D. Its expression must evaluate to a single value.


Sample Question 9

What is the name of the Java concept that uses access modifiers to protect variables andhide them within a class?

A. Encapsulation
B. Inheritance
C. Abstraction
D. Instantiation
E. Polymorphism


Sample Question 10

Which two initialization statements are valid? (Choose two.)

A. Boolean available = “TRUE”:
B. String tmpAuthor = author, author =”Mc Donald”;
C. Double price = 200D;
D. Integer pages = 20;


Sample Question 11

Which statement is true about Java byte code?

A. It can run on any platform.
B. It can run on any platform only if it was compiled for that platform.
C. It can run on any platform that has the Java Runtime Environment.
D. It can run on any platform that has a Java compiler.
E. It can run on any platform only if that platform has both the Java Runtime Environmentand a Java compiler.


Sample Question 12

Which two statements are true about Java byte code? (Choose two.)

A. It can be serialized across network.
B. It can run on any platform that has a Java compiler.
C. It can run on any platform.
D. It has “.java” extension.
E. It can run on any platform that has the Java Runtime Environment.


Sample Question 13

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.


Sample Question 14

Which three are advantages of the Java exception mechanism? (Choose three.)

A. Improves the program structure because the error handling code is separated from thenormal program function
B. Provides a set of standard exceptions that covers all possible errors
C. Improves the program structure because the programmer can choose where to handleexceptions
D. Improves the program structure because exceptions must be handled in the method inwhich they occurred
E. Allows the creation of new exceptions that are customized to the particular programbeing created


Sample Question 15

Which is true about the switch statement?

A. Its expression can evaluate to a collection of values.
B. The break statement, at the end of each case block, is optional.
C. Its case label literals can be changed at runtime.
D. It must contain the default section.


Sample Question 16

Which three statements describe the object-oriented features of the Java language?(Choose three.)

A. Objects cannot be reused.
B. A subclass must override the methods from a superclass.
C. Objects can share behaviors with other objects.
D. A package must contain a main class.
E. Object is the root class of all other objects.
F. A main method must be declared in every class.


Sample Question 17

Which statement best describes encapsulation?

A. Encapsulation ensures that classes can be designed so that only certain fields andmethods of an object are accessible from other objects.
B. Encapsulation ensures that classes can be designed so that their methods areinheritable.
C. Encapsulation ensures that classes can be designed with some fields and methodsdeclared as abstract.
D. Encapsulation ensures that classes can be designed so that if a method has anargument MyType x, any subclass of MyType can be passed to that method.


Sample Question 18

Which statement is true about the main() method?

A. It is invoked by JRE
B. It is a final method
C. It returns true if it is executed successfully at run time
D. It must be defined within a public class


Sample Question 19

Which three statements are true about the structure of a Java class? (Choose three.)

A. A public class must have a main method.
B. A class can have only one private constructors.
C. A method can have the same name as a field.
D. A class can have overloaded static methods.
E. The methods are mandatory components of a class.
F. The fields need not be initialized before use.


Sample Question 20

Which two array initialization statements are valid? (Choose two.)

A. int array[] = new int[3] {1, 2, 3};
B. int array[] = new int[3]; array[0] = 1;array[1] = 2;array[2] = 3;
C. int array[3] = new int[] {1, 2, 3};
D. int array[] = new int[3]; array = {1, 2, 3};
E. int array[] = new int[] {1,2,3};


Sample Question 21

Given these requirements:Bus and Boat are Vehicle type classes.The start() and stop() methods perform common operations across the Vehicleclass type.The ride() method performs a unique operations for each type of Vehicle.Which set of actions meets the requirements with optimized code?

A. 1. Create an abstract class Vehicle by defining start() and stop() methods, and declaringthe ride()abstract method. 2. Create Bus and Boat classes by inheriting the Vehicle class and overriding the ride()method.
B. 1. Create an interface Vehicle by defining start() and stop() methods, and declaring theride()abstract method.2. Create Bus and Boat classes by implementing the Vehicle class.
C. 1. Create an abstract class Vehicle by declaring stop(), start(), and ride() abstractmethods.2. Create Bus and Boat classes by inheriting the Vehicle class and overriding all themethods.
D. 1. Create an interface Vehicle by defining default stop(), start(), and ride() methods.2. Create Bus and Boat classes by implementing the Vehicle interface and overriding theride()method.


Sample Question 22

Which two features can be implemented in a Java application by encapsulating the entityclasses used? (Choose two.)

A. data validation
B. compile time polymorphism
C. data hiding
D. data abstraction
E. data memory optimization


Sample Question 23

Which statement is true about the switch statement?

A. It must contain the default section.
B. The break statement, at the end of each case block, is optional.
C. Its case label literals can be changed at runtime.
D. Its expression must evaluate to a collection of values.


Sample Question 24

Which two are benefits of polymorphism? (Choose two.)

A. Faster code at runtime
B. More efficient code at runtime
C. More dynamic code at runtime
D. More flexible and reusable code
E. Code that is protected from extension by other classes


Sample Question 25

Given the class definitions:class C1 {}class C2 extends C1 {}class C3 extends C2 {}and the code fragment:16.C1 obj1 = (C1) new C2();17.C2 obj2 = (C2) new C3();18.C2 obj3 = (C2) new C1();19.C3 obj4 = (C3) obj2;Which line throws ClassCastException?

A. line 18
B. line 17
C. line 19
D. line 16


Sample Question 26

Which statement will empty the contents of a StringBuilder variable named sb?

A. sb. deleteAll ();
B. sb. delete (0, sb. size () );
C. sb. delete (0, sb. length () );
D. sb. removeAll ();


Sample Question 27

What is the name of the Java concept that uses access modifiers to protect variables and hide them within a class?

A. Encapsulation
B. Inheritance
C. Abstraction
D. Instantiation
E. Polymorphism


Sample Question 28

Which statement is true about the switch statement?

A. It must contain the default section.
B. The break statement, at the end of each case block, is optional.
C. Its case label literals can be changed at runtime.
D. Its expression must evaluate to a collection of values.



Exam Code: 1z0-808
Exam Name: Java SE 8 Programmer I
Last Update: May 13, 2024
Questions: 224