Summary
In this chapter, we learned what the three core elements of Java programming are—operators, expressions, and statements—and how they are related to each other. We walked you through all the Java operators, discussed the most popular ones with examples, and explained the potential issues with using them. A substantial part of this chapter was dedicated to data type conversion: widening and narrowing, boxing, and unboxing. The equals() method of reference types was also demonstrated and tested on specific examples for a variety of classes and implementations. The String class was used prominently and the popular incorrect explanation of its behavior was resolved.
In the next chapter, we will start writing the program logic—the backbone ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access