Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How many string object created in this code

 
Madhawi Maurya
Ranch Hand
Posts: 42
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi friend,

How many String objects will be created when this method is invoked?
Answer is given 3.
But it should be 5. that is
"fred"
"47"
"fred47"
"ed4" and
"ED4"

please clear me.
 
Ravikanth kolli
Ranch Hand
Posts: 179
Chrome Eclipse IDE Mac
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi
This is a repitition of the question that is postedhere
 
Madhawi Maurya
Ranch Hand
Posts: 42
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thanks kolli
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic