Consider the following code segment:
String newString = "Welcome";
String anotherString = "Home";
newString = anotherString + "Hello";
What is the value of newString?
Responda
HomeHello
HelloHello
WelcomeHello
Welcome Hello
Home Hello
Questão 2
Questão
Which of the following returns the last character of the string str?
Responda
str.substring(0);
str.substring(0, str.length());
str.substring(length(str));
str.substring(str.length()-1);
str.substring(str.length());
Quer criar seus próprios Quizzesgratuitos com a GoConqr? Saiba mais.