Download Oracle.1z0-808.CertDumps.2017-12-17.118q.vcex

Download Exam

File Info

Exam Java SE 8 Programmer
Number 1z0-808
File Name Oracle.1z0-808.CertDumps.2017-12-17.118q.vcex
Size 7 MB
Posted Dec 17, 2017
Download Oracle.1z0-808.CertDumps.2017-12-17.118q.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 if the integer aVar is 9?


  1. 10 Hello World!
  2. Hello Universe!
  3. Hello World!
  4. Compilation fails.
Correct answer: A



Question 3

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 4

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 5

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 6

Given the code fragment:
    
Which two modifications, made independently, enable the code to compile?


  1. Make the method at line n1 public.
  2. Make the method at line n2 public.
  3. Make the method at line n3 public.
  4. Make the method at line n3 protected.
  5. Make the method at line n4 public.
Correct answer: CD



Question 7

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 8

Given the code fragment:
    
Which two modifications should you make so that the code compiles successfully? 
   


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



Question 9

Given the following two classes:
   
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? 
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 method useElectricity method. An instance of the customer class should never be able to tamper with or decrease the value of the member variable bill. 
   


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



Question 10

Given the code fragment:
    
What is the result?


  1. Match 1
  2. Match 2
  3. No Match
  4. A NullPointerException is thrown at runtime.
Correct answer: B









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