aspose file tools*
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes q on strings - abhilash's exam 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 "q on strings - abhilash Watch "q on strings - abhilash New topic
Author

q on strings - abhilash's exam

JayaSiji Gopal
Ranch Hand

Joined: Sep 27, 2004
Posts: 303


SCJP 1.4, SCWCD 1.4<br /> <br />Thanks in advance!<br />Jayashree.
Barry Gaunt
Ranch Hand

Joined: Aug 03, 2002
Posts: 7729
Read the API!


Ask a Meaningful Question and HowToAskQuestionsOnJavaRanch
Getting someone to think and try something out is much more useful than just telling them the answer.
Ramy M. Kamel
Greenhorn

Joined: Sep 13, 2004
Posts: 22
JayaSiji,

I think you should focus a little before studying for the exam.

It will hurt you to ask questions about these fundamental issues, which you must master before taking the exam.

Anyway, String is a immutable class, meaning that each method that would alter its contents will return a new String instance .

So, the replace method returns a new String instance, which is the reason why th equality operators returns false; they are two different objects.


<b>If you do things well, do them better. Be daring, be first, be just.</b><br />SCJP <b>98.4%</b>
 
jQuery in Action, 2nd edition
 
subject: q on strings - abhilash's exam