Sunday, December 20, 2015

Casting part 3

Hi All...!

Today I'm going to show you how to cast int data type's variables to long data type. If someone don't have any idea about Java data type please read the post Data Types In Java. Again I like to recall your memory "Casting" means converting large ranged data type's variables to small  ranged data type if it is comes under the range of the small data type.

Let's see the code,


Same thing happens if the value of the long variable exceed the limit of the int data type please read the post about casting Casting part 1 and Casting part 2

No comments:

Post a Comment