Card 8 / 43: What is true for the following code? String river="Mississippi"; river=river.replace("issipp" , "our"); System.out.println(river);
A)
The name of the variable is Mississippi
B)
.replace is an object for the the String Class
C)
.println is a class for the System.out object
D)
The output will be Missouri
Answer:
D) The output will be Missouri
Previous Card | ← Previous Card Button |
Next Card | → Next Card Button |
Flip Card | Space-Bar |
.replace and .println are both methods (first for string class and second for System.out class)
![]() |