As a result of compiling of which lines there will be a compilation error:

public class Main {
    public static void main(String[] args) {
        int v1 = 081; //1
        int v2 = 0x81; //2
        float v3 = 0x81; //3
        float v4 = 0.81; //4
        byte v5 = 0x81; //5        
    }
}

Follow CodeGalaxy

Mobile Beta

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