Computer Science, asked by nuzhatkhan7865, 5 hours ago

define type conversation in blue j​

Answers

Answered by RawkneeDada
0

Please Mark Me Brainlist

Type casting is a way of converting data from one data type to another data type. This process of data conversion is also known as type conversion or type coercion. In Java, we can cast both reference and primitive data types. By using casting, data can not be changed but only the data type is changed.

PROGRAM-----

public class main

{

public static void main()

{

int a = 20;

long b = a;

double c = b;

System.out.println(a);

System.out.println(b);

System.out.println(c);

}

}

OUTPUT----

20

20

20.0

Similar questions