wood burning stoves 2.0*
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes String Objects??? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "String Objects???" Watch "String Objects???" New topic
Author

String Objects???

Prav sharma
Ranch Hand

Joined: Feb 07, 2005
Posts: 102
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

Joined: Oct 16, 2008
Posts: 952
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.


SCJP 6
Henry Wong
author
Sheriff

Joined: Sep 28, 2004
Posts: 18989
    
  40

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


Books: Java Threads, 3rd Edition, Jini in a Nutshell, and Java Gems (contributor)
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: String Objects???