Primitive Type Conversion in Java: Implicit and Explicit Type Casting - Quiz

Total: 3 questions

1. 

What does an implicit cast mean?

It means code for cast shouldn't be written, the conversion will be done automatically.

2. 

What does explicit cast mean?

The code for cast should be written.

3. 

How to fix this? 

class Casting {
    public void calculate() {
        int y = 3957.229;
    }
}
class Casting {
    public void calculate() {
        int y = (int)3957.229;
    }
}
Page 1 of 1