Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

question regarding strings

 
trinadh reddy
Ranch Hand
Posts: 60
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
what is the diffrence betweenString str="abc" ;
and String str= new String("abc");
 
Christophe Verré
Sheriff
Posts: 14691
16
Eclipse IDE Ubuntu VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You should read this article about Strings:
http://www.javaranch.com/journal/200409/Journal200409.jsp#a1
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic