Java OCA OCP Practice Question 1441

Question

Which of these methods are not a part of the String class?

Select 1 option

A. trim ( ) 
B. length ( ) 
C. concat (String) 
D. hashCode ( ) 
E. reverse ( ) 


Correct Option is  : E

Note

The String class has no reverse ( ) method but StringBuffer (and StringBuilder) do have this method.




PreviousNext

Related