The following string variable is defined:
String s = "abc";
Which of the following operations are allowed?
String conversion in Java is performed implicitly and only in one case: when string and non-string are concatenated.
For example, the following will be allowed:
s = "" + (46 >> 2); // empty string + number
Number will be implicitly converted to string in this case.

Слідкуй за CodeGalaxy

Мобільний додаток Beta

Get it on Google Play
Зворотній Зв’язок
Продовжуйте вивчати
тести з Java
Зареєструйся Зараз
або Підпишись на майбутні тести