What is the string contained in s after following lines of Java code?
StringBuffer s new StringBuffer(“Hello”);
s.deleteCharAt(0);?
a) Hell
b) ello
c) Hel
d) llo
Answer: b
Explanation: deleteCharAt() method deletes the character at the specified index location and returns the resulting StringBuffer object.
Related Posts
Which of the following is the most complete cloud computing service model?
Rackspace Cloud Service is an example of _____________
Amazon Web Services offers a classic Service Oriented Architecture (SOA) approach to ______________
_______ provides virtual machines, virtual storage, virtual infrastructure, and other hardware assets.
__________ is the most refined and restrictive service model.
Which of the following can be considered PaaS offering?
Point out the wrong statement.
Join The Discussion