Multiple Choice
Assume the following variable has been declared and given values as shown:
String name = "Mamey, Jean";
Which statement will print the name as "Jean Mamey"?
A) System.out.print(name.substring(7) + " " + name.substring(0, 5) ) ;
B) System.out.print(name.substring(8, 4) + " " + name.substring(1, 5) ) ;
C) System.out.print(name.substring(8) + " " + name.substring(1, 4) ) ;
D) System.out.print(name.substring(2) + " " + name.substring(1) ) ;
Correct Answer:

Verified
Correct Answer:
Verified
Q2: What is wrong with the following code
Q3: What will be printed by the statement
Q4: When you purchase donuts, they come in
Q5: Which statement is true about variable names
Q6: What is the value of Math.abs(-2)?<br>A)-2<br>B)0<br>C)2<br>D)4
Q8: Which of the following options declares a
Q9: Which is the Java equivalent of the
Q10: Assume the following variables have been declared
Q11: Which is the Java equivalent of the
Q12: What is the output of the following