Select all the statements that are correct regarding the following code:

public class TestClazz {
    public static void main(String[] args) {
        final long Byte = 0;            // 1
        if ( Byte.equals(0) ) {        // 2
            System.out.print("==");
        } else {
            System.out.print("!=");
        }
    }
}

Follow CodeGalaxy

Mobile Beta

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