Which line/lines will compilation error occur in?

public class Test {
    public static void main(String[] args) {
        char c = (char) 1; // 1
        boolean boo = (boolean) 1; // 2
        byte b = (byte) true;    // 3
    }
}

Follow CodeGalaxy

Mobile Beta

Get it on Google Play
Send Feedback
Keep exploring
Java quizzes
Cosmo
Sign Up Now
or Subscribe for future quizzes