Assignment conversion happens when you assign a value to a variable of a different type public class MainClass { public static void main(String[] argv) { int i; double d; i = 10; d = i; // Assign an int value to a double variable System.out.println(d); System.out.println(i); } }
10.0 10