• Post Reply Bookmark Topic Watch Topic
  • New Topic

question regarding strings  RSS feed

 
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
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!