File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes q from abhilash mock exam on strings. 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 from abhilash mock exam on strings." Watch "q from abhilash mock exam on strings." New topic

q from abhilash mock exam on strings.

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.
Colin Cullen

Joined: Dec 23, 2004
Posts: 8
For a deeper understanding to your puzzle check out:

JLS 3.10.5 String Literals

Or the excellent article on JavaRanch
The SCJP Tip Line -- Strings, Literally
by Corey McGlone

Win jones
Ranch Hand

Joined: Dec 12, 2004
Posts: 38

Print Not Equal - if the trim function does not have anything to trim then new strings are not created (remeber String is immuatable).
ankur rathi
Ranch Hand

Joined: Oct 11, 2004
Posts: 3830
Colin please can you give URL for that article which is on java ranch .
I agree. Here's the link:
subject: q from abhilash mock exam on strings.
It's not a secret anymore!