Method 1 is preferred as it is more memory efficient. When creating Strings using this method, Java will compare the string literal you pass in with the strings currently stored in the pool and if the ...
NOTE: reverse() method is an instance method of StringBuilder class AND reverse() method is also an instance synchronized method of StringBuffer class in JAVA PLEASE NOTE THAT reverse() method is NOT ...