Тести
Мова сайту: Українська
Українська
English
Русский
Тести з програмування
Вхід
Реєстрація
Тести з програмування
Теорія
Сніпети
Статті
Головна
Android
Ціни
FAQ
Історія Cosmo
Правила та умови сервісу
Політика конфіденційності
Політика щодо файлів cookie
Зворотній Зв’язок
arithmetic operations
:
Мова контенту: English
Русский
int i = Integer.MAX_VALUE + 10; What is the result of the given line execution?
arithmetic operations
What is the result of the following code execution? public class Main { public static void main(String[] args) { String value = "29.1"; System.out.println((Float.valueOf(value) + 1.0) == 30.1); System.out.println((Double.valueOf(value) + 1.0) == 30.1); System.out.println(Float.valueOf(value) / 0); System.out.println(Double.valueOf(value) / 0); } }
arithmetic operations
The following string variable is defined: String s = "abc"; Which of the following operations are allowed?
arithmetic operations
What will be displayed on the console? public class Main { public static void main(String[] args) { int a = 10; int b = 100; double c = (double) (a/b); String str = String.format("%1.4f", c); System.out.println(str); } }
arithmetic operations
What will be the result of compilation of the following code: double big = 1.0e307 * 2000 / 2000; System.out.println( big == 1.0e307 );
arithmetic operations
What will be the result of execution of following statements? double x = 2./0; double y = -1/0.; System.out.print(x + y);
arithmetic operations
What will be the result of running the following code? public class Test { public static void main(String[] args){ float x = 0, y = 0; x = (float) (0.3 + 0.4); y = 0.3f + 0.4f; System.out.println(x==y); } }
arithmetic operations
← Попередня
1
Наступна →
Зареєструйся Зараз
або
Підпишись на майбутні тести