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

Chapter 3 Making Decisions

Оглавление

OCP EXAM OBJECTIVES COVERED IN THIS CHAPTER:

 Controlling Program FlowCreate program flow control constructs including if/else, switch statements and expressions, loops, and break and continue statements

 Utilizing Java Object-Oriented ApproachImplement polymorphism and differentiate object type versus reference type. Perform type casting, identify object types using instanceof operator and pattern matching

Like many programming languages, Java is composed primarily of variables, operators, and statements put together in some logical order. In the last chapter, we covered how to create and manipulate variables. Writing software is about more than managing variables, though; it is about creating applications that can make intelligent decisions. In this chapter, we present the various decision-making statements available to you within the language. This knowledge will allow you to build complex functions and class structures that you'll see throughout this book.

OCP Oracle Certified Professional Java SE 17 Developer Study Guide

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