ExamQuestions.com

Register
Login
Java SE 8 Programmer II Exam Questions

Oracle

Java SE 8 Programmer II

117 / 130

Question 117:

Given the code fragment: 
image
You have been asked to define the ProductCode class. The definition of the ProductCode class must allow c1 instantiation to succeed and cause a compilation error on c2 instantiation. Which definition of ProductCode meets the requirement? A. 
image
B. 
image
C. 
image
D. 
image