| Author |
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
Greenhorn
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 Enjoy!
|
 |
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: 3829
|
|
|
Colin please can you give URL for that article which is on java ranch .
|
 |
 |
|
|
subject: q from abhilash mock exam on strings.
|
|
|