Chapter 6
Mastering Advanced Language Features, Part 2
In Chapters 2 through 4, I laid a foundation for learning the Java language, and in Chapter 5, I built onto this foundation by introducing some of Java’s more advanced language features. In this chapter, I will continue to cover advanced language features by focusing on those features related to assertions, annotations, generics, and enums.
Mastering Assertions
Writing source code is not an easy task. All too often, bugs are introduced into the code. When a bug is not discovered before compiling the source code, it makes it into runtime code, which will probably fail unexpectedly (or show no sign of failure but give wrong output). At this point, the cause of failure can be very difficult ...
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