public class StringApps {
public static void main(String[] args){
String s = "abc";
String s2 = new String("abc");
if(s==s2)
{ System.out.println("references are equal"); }
else
{ System.out.println("references are not equal"); }
}}
what will be the output
Monday, February 16, 2009
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment