Unlike PHP or JavaScript, Java is a strongly typed programming language. It essentially means that each variable must be declared with a pre-defined data type that can not be changed afterwards. There are two data types in Java:

Primitive data types – int, double, float, byte, long, boolean, etc.
Reference data types – Integer, Double, Float, Date, String, Object, etc.

In this tutorial, we will focus on type conversion for primitive data types.

Generated by Feedzy