Java Syntax Basics: Variables, Identifiers, and Structure

Primitive Type Conversion in Java: Implicit and Explicit Type Casting

1/8

What will be in the output of this code? 

class CastInt {
    public static void main(String[] vars) {
        int z = (int) 3957.229;
        System.out.println("z = " + z);
    }
}
Comments