• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

String creation

 
asha Pawaskar
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi

what is the difference between

String s = "abc"; and
String s = 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
Check this Journal article.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic