Answer:
D. return str.substring(0, 1) + removeDupChars(str.substring(1));
Explanation:
The logic here is following:
If the there are consecutive duplicate characters, return the removeDupChars method. The parameter of the removeDupChars method is a string, but the duplicate of the first character is removed from the string. The else-if part of the program does this job.
If the consecutive characters are not duplicated, return the first character of the string and the removeDupChars method. The parameter of the removeDupChars method is the rest of the string characters. The else part of the program does this job.
When the length of the str becomes one (or when the str is null), the program reaches its base and returns the str. The if part of the program does this job.
It’s a making sections about what algorithms to use
<span>The following statements are true:
1. Leased lines require little installation and maintenance expertise.
( A high service quality is offered by point-to point system)
2. Leased lines provide highly flexible bandwidth scaling.
(This Allows a Constant availability)</span>