A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
Java SE 8 for the Really Impatient
this week in the
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 ==
question on Strings
Doubt in Strings
doubt about Strings from Whizlabs
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014