O'Reilly logo

Beginning Java 8 Fundamentals: Language Syntax, Arrays, Data Types, Objects, and Regular Expressions by Kishori Sharan

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

CHAPTER 3

image

Data Types

In this chapter, you will learn:

  • What data types are
  • What identifiers are and detailed rules to declare them
  • The difference between primitive and reference data types
  • How to declare variables of a data type
  • How to assign a value to a variable
  • Detailed descriptions of all primitive data types in Java
  • What literals of a data type are
  • What casting is and when it is needed
  • Binary representation of integers and floating-point numbers
  • Different rounding modes for floating-point numbers
  • How Java implements IEEE floating-point standards

What Is a Data Type?

A data type (or simply a type) is defined in terms of three components: ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required