Chpater 2
Variables, Data Types, and Operators
Learning Objectives
By the end of this lesson, you will be able to:
- Use primitive data types in Java
- Use reference types in Java
- Implement simple arithmetic operations
- Use type-casting methods
- Input and output various data types
Introduction
In the previous lesson, we were introduced to the Java ecosystem and the tools that are needed to develop Java programs. In this lesson, we will start our journey of the Java language by looking at the fundamental concepts in the language such as variables, data types, and operations.
Variables and Data Types
One of the fundamental concepts in computer programming is memory, used to store information in the computer. Computers use bits as the smallest ...
Get Java Fundamentals 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.