Download Java SE 8 Programmer.selftestengine.1z0-808.2020-02-26.1e.112q.vcex


Download Exam

File Info

Exam Java SE 8 Programmer
Number 1z0-808
File Name Java SE 8 Programmer.selftestengine.1z0-808.2020-02-26.1e.112q.vcex
Size 9.29 Mb
Posted February 26, 2020
Downloads 78



How to open VCEX & EXAM Files?

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

Purchase
Coupon: EXAMFILESCOM

Coupon: EXAMFILESCOM
With discount: 20%


 
 



Demo Questions

Question 1
Given:

  

What is the result?

  • A: 200.0 : 100.0
  • B: 400.0 : 200.0
  • C: 400.0 : 100.0
  • D: Compilation fails.



Question 2
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.



Question 3
Given the code fragment:

  

What is the result?

  • A: Sum is 600
  • B: Compilation fails at line n1.
  • C: Compilation fails at line n2.
  • D: A ClassCastException is thrown at line n1.
  • E: A ClassCastException is thrown at line n2.



Question 4
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



Question 5
Given the code fragment:

  

Which two modifications, made independently, enable the code to compile? (Choose two.)

  • A: Make the method at line n1 public.
  • B: Make the method at line n2 public.
  • C: Make the method at line n3 public.
  • D: Make the method at line n3 protected.
  • E: Make the method at line n4 public.



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?

  • A:
      
  • B:
      
  • C:
      
  • D:
      



Question 7
Given the code fragment:

  

What is the result?

  • A: Match 1
  • B: Match 2
  • C: No Match
  • D: A NullPointerException is thrown at runtime.



Question 8
Given:

  

What is the result?

  • A: A B C D
  • B: A C D
  • C: A C D D
  • D: A B D
  • E: A B D C



Question 9
Given the code fragment:

  

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

  • A:
      
  • B:
      
  • C:
      
  • D:
      



Question 10
Given this class:

  

And given this main method, located in another class:

  

Which three lines, when inserted independently at line n1, cause the program to print a 0 balance? (Choose three.) 

  • A: acct.setAmount(-acct.getAmount());
  • B: acct.amount = 0; <option D earlier>
  • C: acct.setAmount(0);
  • D: acct.getAmount() = 0; <option E earlier>
  • E: this.amount = 0; <option A earlier>
  • F: acct.changeAmount(0); <option F earlier>
  • G: acct.changeAmount(-acct.amount); <option G earlier>








ProfExam
PROFEXAM WITH A 20% DISCOUNT

You can buy ProfExam with a 20% discount..

Get Now!


HOW TO OPEN VCEX AND EXAM FILES

Use ProfExam Simulator to open VCEX and EXAM files
ProfExam Screen



HOW TO OPEN VCE FILES

Use VCE Exam Simulator to open VCE files
Avanaset