• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

String Objects???

 
Prav sharma
Ranch Hand
Posts: 102
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi

This is confusing me. How to determine the number of String objects created?




i thought it should be 1+2+1+1+1 = 6
is it right? If NOT then Why?
 
Punit Singh
Ranch Hand
Posts: 952
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Prav sharma wrote:Hi

This is confusing me. How to determine the number of String objects created?




i thought it should be 1+2+1+1+1 = 6
is it right? If NOT then Why?


Please search, this question is asked 100 times here.
 
Henry Wong
author
Marshal
Pie
Posts: 21492
84
C++ Chrome Eclipse IDE Firefox Browser Java jQuery Linux VI Editor Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please search, this question is asked 100 times here.



Agreed. And normally, we would ask you to quote your sources, but we know where this one is from.

Henry
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic