Тесты
Язык сайта: Русский
Українська
English
Русский
Тесты по программированию
Вход
Регистрация
Тесты по программированию
Теория
сниппеты
Статьи
Главная
Android
Цены
FAQ
История Cosmo
Правила и условия сервиса
Политика конфиденциальности
Политика в отношении файлов cookie
Обратная Связь
numbers
:
Язык контента: English
Русский
Will the text located into conditional operator block be printed out? public static void main(String[] args){ int x = 18; int y = x++; if (x == 18 && y > 10){ System.out.println("y = " + y); System.out.println("x = " + x); } }
numbers
What is the result of the following code compilation and execution? public class MainClass { public static void test(int ...a) { System.out.println("int..."); } public static void test(Integer ...a) { System.out.println("Integer..."); } public static void test(Number ...a) { System.out.println("Number..."); } public static void main(String args[]){ Number n = new Integer(1); test(n.intValue()); } }
numbers
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); } }
numbers
What is the result of the following code execution? System.out.println( 0.3 == 0.1d + 0.1d + 0.1d );
numbers
What will be the output of the following code? (JDK version >= 1.5) public static void main(String[] args) { Integer a = 12; Integer b = 12; Integer c = 128; Integer d = 128; System.out.println(a == b); System.out.println(c <= d); System.out.println(c >= d); System.out.println(c == d); }
numbers
What will be printed after compilation and running of the following code? double d1 = 1024.0d; double d2 = 1.0e-13d; double sum = d1 + d2; if (sum > d1) { System.out.println(">"); } else if (sum < d1) { System.out.println("<"); } else if (sum == d1) { System.out.println("=="); }
numbers
What will be printed if you compile and run the following code: public class Quizful { public static void main(String[] args) { byte b = 127; b += 129; System.out.println(b); } }
numbers
What will be written as a result of executing the following code fragment: System.out.println(01232d);
numbers
What will the following code print out: public class Increments { public static void main(String[] args) { int i = 0; i = i++ + i++; System.out.println(i); } }
numbers
What will be the result of compilation and execution of the following code? public class Test { public static void main(String[] args) { Double d = 1.56D; Long l = 257L; byte b = 10; System.out.println(d.longValue() + l.byteValue() + b % 2); } }
numbers
← Предыдущая
1
2
3
4
5
Следующая →
Зарегистрируйся сейчас
или
Подпишись на будущие тесты