Тесты
Язык сайта: Русский
Українська
English
Русский
Тесты по программированию
Вход
Регистрация
Тесты по программированию
Теория
сниппеты
Статьи
Главная
Android
Цены
FAQ
История Cosmo
Правила и условия сервиса
Политика конфиденциальности
Политика в отношении файлов cookie
Обратная Связь
char
:
Язык контента: English
Русский
What will the following code display (ASCII code of '1' is 49)? public class Test { public static void main(String[] args) { char c1 = '1'; char c2 = '\u0031'; char c3 = 49; System.out.println(c1 + c2 + c3); } }
char
What is the result of the following program execution? public class Test { public static void main(String[] args) { char ch = '0'; for (; ch <= 9; ch++) System.out.print(ch); } }
char
Which line will a compilation error occur in? public class Test { public static void main(String\u005B\u005D args) { // 2 char a = '\u005B'; // 3 char c = '\u005D'; // 4 System.out.println(a * c); // 5 } }
char
Which of the following statements are true given the following code: String a = new String("hello"); String b = new String(a); String c = a; char[] d = { 'h', 'e', 'l', 'l', 'o' };
char
Variable of "char" type can store values from the following range
char
← Предыдущая
1
Следующая →
Зарегистрируйся сейчас
или
Подпишись на будущие тесты