A.4. The Questions

Types of Questions Asked

Most of the questions follow some common form that requires candidates to apply their knowledge in a special way.

  • Analyzing program code.

    The question provides a source code snippet and asks a specific question pertaining to the snippet. Will running the program provide the expected result? What will be written to the standard output when the program is run? Will the code compile?

  • Identifying true or false statements.

  • Naming specific classes or members.

When analyzing program code, it is useful to try to apply the same rules as the compiler: examining the exact syntax used rather than making assumptions on what the code tries to accomplish.

The wording of the questions is precise, and expects the responses ...

Get Programmer's Guide to Java™ Certification, A: A Comprehensive Primer, Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.