© The Author(s), under exclusive license to APress Media, LLC, part of Springer Nature 2024
J. FriesenLearn Java Fundamentalshttps://doi.org/10.1007/979-8-8688-0351-2_2

2. Comments, Identifiers, Types, Variables, and Literals

Jeff Friesen1  
(1)
Dauphin, MB, Canada
 

When learning a new programming language, starting with the most basic of language features is best. These features are comments, identifiers (with reserved words as a subset), types, variables, and literals. This chapter introduces you to these features in a Java context.

Comments

It’s important to document your source code so that you and anyone else who might maintain it in the future can understand the code’s purpose. Our brains tend to forget things as we age, and we may not understand ...

Get Learn Java Fundamentals: A Primer for Java Development and Programming now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.