Language Fundamentals – Data Types and Variables
Now that we are comfortable (I hope) with basic Java tooling, we are ready to look at the language itself. As you are already a developer, there is no need to cover low-level concepts, such as what a variable is, in this chapter. So, this chapter will take advantage of what you already know and introduce you to the data types available in Java and the operations we can perform on them.
In this chapter, you will learn about the following:
- Type safety
- The eight primitive data types
- Literal values
- The
String
data type - Naming identifiers
- Constants
- Operations on data
- Casting
- Overflow and underflow
- The math class