In this chapter, the three core elements of Java programming—operators, expressions, and statements—will be defined and explained in detail. The discussion will be supported by specific examples that illustrate the key aspects of these elements.
The following topics will be covered:
- What are the core elements of Java programming?
- Java operators, expressions, and statements
- Operator precedence and evaluation order of operands
- Widening and narrowing the conversion of primitive types
- Boxing and unboxing between primitive and reference types
- The equals() method of reference types
- Exercise – Naming the statements