A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
OCA Java SE 8 Programmer I Study Guide
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
doubt about Strings from Whizlabs
question on Strings
Doubt in Strings
one more on ==
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2015