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
Зарегистрируйся сейчас
или Подпишись на будущие тесты