Lesson: Data Conversion (Casting)

Overview: 
Explore how Java converts between different data types.
Objectives: 

Understand Java's data conversion features which are called Casting.

Content: 

Java provides the ability to convert from one data type to another within a set of rules. Some conversions are made automatically and some you have to explicitly request.

Here is a discussion of converting between primitive data types.

Here is a discussion of converting between reference (object) data types.

 

Lesson navigation: