Friday, July 24, 2009

Implict vs explict

Implicit : something is being done automatically
Explicit : have to write something in the source code to indicate what to happen


E.g: int i =20;
long y =i // Implicit conversion from int to long
int z = (long)y // Explicit conversion from long to int

0 comments:

 
Counter