Java is an object-oriented programming language, but there’s more to Java than programming with objects. This tutorial is the first of several introducing non-object-oriented features and syntax that are fundamental to the Java language. You’ll learn how to use comments, identifiers, types, literals, and variables in your Java programs. You’ll also learn why and how to document your code, and you’ll see how Java’s support for Unicode affects source code and compilation.
Note: Examples in this tutorial have been updated for JDK 12. I’ll briefly discuss the new module feature (module-info.java) and its 10 restricted keywords. I’ll also show you how to use var to declare local variables. See the Java Language Specification: Java SE 12 Edition for more about Java 12.

