Nouvelle formation ! Tous les codeurs devraient apprendre l'IA générative !
Essayez une leçon gratuite0
Output?And how?
public class Program { public static void main(String[] args) { int a=012; System.out.println(a); } }
1 Réponse
+ 3
0 prefix means it is an octal number. And its equalent int value is 10.
That's why you get Answer as 10.. .