Which is the most efficient way of creating a string object in java?
String s="helo"; or
String s=new String("helo"); in terms of memory usage?
Thanks in advance...
Edited by peter_budo: Keep It Organized - For easy readability, always wrap programming code within posts in [code] (code blocks)