Java Core & Fundamentals Tutorial
Java tutorial for beginners on Java 25. Install the JDK, run a first program and follow a 12-step learning path plus an index of every Java topic.
In Java, keywords are reserved words that have a predefined meaning and cannot be used as identifiers (e.g., variable names, class names, method names) in your code. These keywords are an integral part of the Java programming language and serve specific purposes within the language’s syntax and semantics.
Java tutorial for beginners on Java 25. Install the JDK, run a first program and follow a 12-step learning path plus an index of every Java topic.
Learn the Java yield keyword with switch expression examples, arrow and colon cases, yield vs return vs break, exhaustiveness and contextual keyword rules.
Learn this and super in Java, this() vs super() constructor calls, Interface.super, Java 25 flexible constructor bodies and static context rules.
Learn what the strictfp keyword in Java did before Java 17, why JEP 306 made it obsolete, its syntax rules, and how to remove it from old code.
Learn the difference between final, finally and finalize in Java, with examples, when finally does not run, and what replaces deprecated finalize().
Learn the Java synchronized keyword with methods and blocks, which lock each form uses, reentrancy, visibility, deadlocks and virtual threads.
Learn the Java boolean type, default values, short-circuit operators, the Boolean wrapper, parseBoolean vs getBoolean, and boolean memory size.
Learn the Java assert keyword, enabling assertions with -ea, AssertionError, when to use assert vs exceptions, side effects, and assertions in tests.
Learn the abstract class in Java with examples, abstract methods, illegal modifier combinations, abstract class vs interface, and sealed hierarchies.
Learn the static keyword in Java for variables, methods, blocks, nested classes and imports, method hiding, thread safety and instance main in Java 25.
Learn the Java transient keyword with serialization examples, restoring fields in readObject(), static and final transient fields, Jackson, Gson and JPA.
HowToDoInJava provides tutorials and how-to guides on Java and related technologies.
It also shares the best practices, algorithms & solutions and frequently asked interview questions.