Aneek Banerjee wrote:I have the following code which print "hello". Need to know why? and how about the memory allocation for this. String s="hello"; s.concat("world"); System.out.println(s)
Books: Java Threads, 3rd Edition, Jini in a Nutshell, and Java Gems (contributor)
Java5 Tutorials | Java6 Tutorials | HTML/CSS Tutorials | JavaScript and jQuery Tutorials| Server to Client Tutorials| Java 8 Tutorials | Servlets and JSP Tutorials