Тести
Мова сайту: Українська
Українська
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
Наступна →
Зареєструйся Зараз
або
Підпишись на майбутні тести