Тести
Мова сайту: Українська
Українська
English
Русский
Тести з програмування
Вхід
Реєстрація
Тести з програмування
Теорія
Сніпети
Статті
Головна
Android
Ціни
FAQ
Історія Cosmo
Правила та умови сервісу
Політика конфіденційності
Політика щодо файлів cookie
Зворотній Зв’язок
typecasting
:
Мова контенту: English
Русский
What will the following code print out to console? public class Exam { public static void main(String[] arg) { Object obj = null; String str = new String("str"); str = (String) obj; obj = new String("obj"); System.out.print(obj + ", " + str); } }
typecasting
What is the result of the following code compilation and execution? public class Test { public static void main(String[] args) { float f = 1.0 + 1.0f; f = f + 1; System.out.println(f / 0); } }
typecasting
byte x = 0; byte y = (--x<0) ? ++x : -x; System.out.println(y); Result of the code execution will be:
typecasting
Among the snippets of code below choose all that will compile successfully.
typecasting
← Попередня
1
Наступна →
Зареєструйся Зараз
або
Підпишись на майбутні тести