Question from the Java - Fundamentals test

Test the autoboxing feature in Java.

Expert

What will be the output of the following code :

class AutoboxingQuestion {
    
    
    public static void main(String[] args) {
        Integer a = 10;
        Integer b = 10;
        Integer c = 200;
        Integer d = 200;

        System.out.println(a == b);
        System.out.println(c == d);
    }
}
Author: Joffrey BonifayStatus: PublishedQuestion passed 98 times
Edit
0
Community Evaluations
developer avatar
Marco
11/03/2024
ahh c'est vicieux, il ne faut pas mettre ce genre de question dans un tests de recrutement :)
developer avatar
Auteur anonyme
15/03/2024
Faut aussi des questions pour différencier les casus des nerds !
developer avatar
Marco
15/03/2024
C'est clair, au moins on rigole un peu 😄