Chapter 4Making Decisions

OCP exam objectives covered in this chapter:

  • images  Using Operators and Decision Constructs
    • Use Java control statements including if, if/else, switch
    • Create and use do/while, while, for and for each loops, including nested loops, use break and continue statements

images Like many programming languages, Java is composed primarily of variables, operators, and statements put together in some logical order. Previously, we covered how to create and manipulate variables. Writing software is about more than managing variables, though; ...

Get OCP Oracle Certified Professional Java SE 11 Programmer I Study Guide now with O’Reilly online learning.

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