Читать книгу OCP Oracle Certified Professional Java SE 17 Developer Study Guide - Jeanne Boyarsky - Страница 21

Encountering Out-of-Scope Material

Оглавление

When you take an exam, you may see some questions that appear to be out of scope. Don't panic! Often, these questions do not require knowing anything about the topic to answer the question. For example, after reading this book, you should be able to spot that the following does not compile, even if you've never heard of the java.util.logging.Logger class.

final Logger myLogger = Logger.getAnonymousLogger(); myLogger = Logger.getLogger(String.class.getName());

The classes and methods used in this question are not in scope for the exam, but the reason it does not compile is. In particular, you should know that you cannot reassign a variable marked final.

See? Not so scary, is it? Expect to see at least a few structures on the exam that you are not familiar with. If they aren't part of your exam preparation material, then you don't need to understand them to answer the question.

OCP Oracle Certified Professional Java SE 17 Developer Study Guide

Подняться наверх