Friday, January 22, 2016

Java Data Type Conversion

Hi All...!

Today I'm going to teach you what is Java Data Type Conversion and how to use this concept in your programs.

Java data type conversion enables conversion of small size data types' variables to large size data types' variables.

To make this concept easy to understand, think byte, short, char, int, long, float, double are water buckets.


Now you can see that things in byte can put into short with out any trouble. Like wise short can put into int and also char can put into int as well, like wise int can put into long, long can put into float, float can put into double.

Let's do some coding to understand this properly,










No comments:

Post a Comment