What is the result of compiling and running the following code?

public class Main {
    public static void main(String s[]) {
        int anar[] = new int[5];
        System.out.println(anar[0]);
    }
}
Explanation
Arrays of primitive number types are initialized with 0.

Слідкуй за CodeGalaxy

Мобільний додаток Beta

Get it on Google Play
Зворотній Зв’язок
Продовжуйте вивчати
тести з Java
Cosmo
Зареєструйся Зараз
або Підпишись на майбутні тести