Chapter 1Java Basics

THE OCA EXAM TOPICS COVERED IN THIS PRACTICE TEST INCLUDE THE FOLLOWING:

  • Java Basics
    • Define the scope of variables
    • Define the structure of a Java class
    • Create executable Java applications with a main method; run a Java program from the command line; produce console output
    • Import other Java packages to make them accessible in your code
    • Compare and contrast the features and components of Java such as: platform independence, object orientation, encapsulation, etc.
  1. Which of the following method signatures is a valid declaration of an entry point in a Java application?

    1. public void main(String[] args)
    2. public static ...

Get OCA / OCP Java SE 8 Programmer Practice Tests now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.