4
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
Technical requirements
Here are the tools required to run the examples in this chapter: ...
Get Transitioning to Java 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.