Using generics results in more robust code and avoids ClassCastExceptions in your Java programs. This in-depth tutorial introduces you to generics and their types and methods.
Use Java's packages and static imports to organize top-level types and simplify access to their static members.
Learn how to use the four types of nested classes to better organize your Java code.
Learn the four types of polymorphism in Java, then start using subtype polymorphism to execute different forms of the same Java method.
Learn how to use statements like if, if-else, switch, for, and while to declare variables and specify expressions, make decisions, iterate over statements, and more.
Learn how to use Java annotations to associate metadata with classes, methods, and other application elements in your Java programs.
Use Java assertions to test your assumptions about program correctness and check them in your code.
Typesafe enums offer a better alternative to Java's traditional enumerated types. Here's how to use typesafe enums correctly in your Java code.