what is cast in java code example
Example 1: cast java
JAVA: Example of cast:
int SomeNumber = 5; //int
double WideCastedNumber = (double)SomeNumber; //from int to double
double myDouble = 9.78;
int myInt = (int) myDouble; // from double to int
Example 2: casting in java
Byte-->short-->char-->Int-->long-->float-->double