Java Magazine, Jan/Feb 2018
Quiz Yourself More intermediate and advanced test questions ORACLE COM JAVAMAGAZINE JANUARY FEBRUARY 2018 101 fix this If youre a regular reader of this quiz you know that these questions simulate the level of difficulty of two diferent certification tests Those marked intermediate correspond to questions from the Oracle Certified Associate exam which contains questions for a preliminary level of certification Questions marked advanced come from the 1Z0 809 Programmer II exam which is the certification test for developers who have been certified at a basic level of Java 8 programming knowledge and now are looking to demonstrate more advanced expertise These questions rely on Java 8 Ill begin covering Java 9 in future columns of course and I will make that transition quite clear when it occurs Id also like to welcome Mikalai Zaikin to this column as a coauthor Hes been working on these questions with me for some time now so youve already been seeing the benefit of his work Question 1 advanced Given this code public class OneValue private final int x Consider these possible changes Change 1 Change the declaration of x as follows private final int x 99 Change 2 Add to the class as follows public OneValue SIMON ROBERTS MIKALAI ZAIKIN
You must have JavaScript enabled to view digital editions.