Тести
Мова сайту: Українська
Українська
English
Русский
Тести з програмування
Вхід
Реєстрація
Тести з програмування
Теорія
Сніпети
Статті
Головна
Android
Ціни
FAQ
Історія Cosmo
Правила та умови сервісу
Політика конфіденційності
Політика щодо файлів cookie
Зворотній Зв’язок
equals method
:
Мова контенту: English
Русский
What will the following code print out? public class My { public static void main(String...args) { Integer i1 = new Integer("013"); Integer i2 = new Integer(013); System.out.println(i1 == i2); System.out.println(i1.equals(i2)); } }
equals method
What will be the result of compilation and execution of the following code? Integer i = new Integer("10"); if (i.toString() == i.toString()) System.out.println("Equal"); else System.out.println("Not Equal");
equals method
← Попередня
1
2
3
Наступна →
Зареєструйся Зараз
або
Підпишись на майбутні тести