File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
EJB 3 in Action
this week in the
EJB and other Java EE Technologies
Programmer Certification (SCJP/OCPJP)
language and utilities expert level question
Joined: Nov 29, 2002
Nov 03, 2004 13:48:00
what will be the output when the following code is compiled and run(assuming written inside main)?
s1 = new String("amit");
why does it print out False?i think s2==s3 is ture.cos both of them are "arit".
Joined: Dec 20, 2001
Nov 03, 2004 13:56:00
SCJP Tipline, etc.
I agree. Here's the link:
subject: language and utilities expert level question
one more on ==
Doubt in Strings
doubt about Strings from Whizlabs
question on Strings
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014