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

String Objects....

Alok Sinha

Joined: Nov 23, 2000
Posts: 4
I got this question in one of the mock tests.It asks to count the no. of String objects created.
The given answer is 3 but I think it should be 2.
the question goes like thos:

String s1,s2,s3,s4;

[This message has been edited by Alok Sinha (edited November 26, 2000).]
zulfiqar raza
Ranch Hand

Joined: Oct 18, 2000
Posts: 81
Three string objects:
"pal" would be an anonymous string object.
I agree. Here's the link: http://aspose.com/file-tools
subject: String Objects....
It's not a secret anymore!