Download Oracle.1z0-808.TestKing.2019-12-04.94q.vcex

Download Exam

File Info

Exam Java SE 8 Programmer
Number 1z0-808
File Name Oracle.1z0-808.TestKing.2019-12-04.94q.vcex
Size 7 MB
Posted Dec 04, 2019
Download Oracle.1z0-808.TestKing.2019-12-04.94q.vcex

How to open VCEX & EXAM Files?

Files with VCEX & EXAM extensions can be opened by ProfExam Simulator.

Purchase

Coupon: MASTEREXAM
With discount: 20%






Demo Questions

Question 1

Given:
  
What is the result?


  1. 200.0 : 100.0
  2. 400.0 : 200.0
  3. 400.0 : 100.0
  4. Compilation fails.
Correct answer: C



Question 2

Given the code fragment:
  
What is the result? 


  1. May 04, 2014T00:00:00.000
  2. 2014-05-04T00:00: 00.000
  3. 5/4/14T00:00:00.000
  4. An exception is thrown at runtime.
Correct answer: D



Question 3

Given the code fragment:
  
What is the result?


  1. Sum is 600
  2. Compilation fails at line n1.
  3. Compilation fails at line n2.
  4. A ClassCastException is thrown at line n1.
  5. A ClassCastException is thrown at line n2.
Correct answer: C



Question 4

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


  1. Encapsulation
  2. Inheritance
  3. Abstraction
  4. Instantiation
  5. Polymorphism
Correct answer: A
Explanation:
Using the private modifier is the main way that an object encapsulates itself and hide data from the outside world. Reference: http://www.tutorialspoint.com/java/java_access_modifiers.htm
Using the private modifier is the main way that an object encapsulates itself and hide data from the outside world. 
Reference: http://www.tutorialspoint.com/java/java_access_modifiers.htm



Question 5

Given:
  
And given the code fragment:
  
What is the result? 


  1. 4W 100 Auto
    4W 150 Manual
  2. null 0 Auto
    4W 150 Manual
  3. Compilation fails only at line n1
  4. Compilation fails only at line n2
  5. Compilation fails at both line n1 and line n2
Correct answer: C



Question 6

Given these two classes:
  
Any amount of electricity used by a customer (represented by an instance of the Customer class) must contribute to the customer's bill (represented by the member variable bill) through the useElectricity method.  
An instance of the Customer class should never be able to tamper with or decrease the value of the member variable bill. 
How should you write methods in the ElectricAccount class at line n1 so that the member variable bill is always equal to the value of the member variable kwh multiplied by the member variable rate?


  1.   
  2.   
  3.   
  4.   
Correct answer: A



Question 7

Given:
  
What is the result?


  1. A B C D
  2. A C D
  3. A B C C
  4. A B D
  5. A B D C
Correct answer: C



Question 8

Given:
  
Which code fragment should you use at line n1 to instantiate the dvd object successfully? 
  


  1. Option A
  2. Option B
  3. Option C
  4. Option D
Correct answer: C



Question 9

Given the code fragment:
  
Which option can replace xxx to enable the code to print 135?


  1.   
  2.   
  3.   
  4.   
Correct answer: B



Question 10

Which statement best describes encapsulation?


  1. Encapsulation ensures that classes can be designed so that only certain fields and methods of an object are accessible from other objects.
  2. Encapsulation ensures that classes can be designed so that their methods are inheritable.
  3. Encapsulation ensures that classes can be designed with some fields and methods declared as abstract.
  4. Encapsulation ensures that classes can be designed so that if a method has an argument MyType x, any subclass of MyType can be passed to that method.
Correct answer: A









CONNECT US

Facebook

Twitter

PROFEXAM WITH A 20% DISCOUNT

You can buy ProfExam with a 20% discount!



HOW TO OPEN VCEX FILES

Use ProfExam Simulator to open VCEX files