Solved

Consider the Method Below, Which Displays the Characters from a String

Question 24

Multiple Choice

Consider the method below, which displays the characters from a String in reverse order.Each character appears on a separate line.Select the statement that should be used to complete the method so that it performs a recursive method call correctly. Consider the method below, which displays the characters from a String in reverse order.Each character appears on a separate line.Select the statement that should be used to complete the method so that it performs a recursive method call correctly.    A) printReverse(word.length()  - 1) ; B) printReverse(word.substring(1) ) ; C) printReverse(word) ; D) printReverse(new String(word.charAt(1) ) ) ;


A) printReverse(word.length() - 1) ;
B) printReverse(word.substring(1) ) ;
C) printReverse(word) ;
D) printReverse(new String(word.charAt(1) ) ) ;

Correct Answer:

verifed

Verified

Unlock this answer now
Get Access to more Verified Answers free of charge

Related Questions

Unlock this Answer For Free Now!

View this answer and more for free by performing one of the following actions

qr-code

Scan the QR code to install the App and get 2 free unlocks

upload documents

Unlock quizzes for free by uploading documents