wood burning stoves
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


Win a copy of Building Microservices this week in the Design forum!
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: 20057
    
  44

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)
 
Have you checked out Aspose?
 
subject: String Objects???
 
It's not a secret anymore!