adi narayana

Greenhorn
+ Follow
since May 08, 2008
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by adi narayana

class Test{
public static void main(String args[])
{
String s1="hello";
String s2=new String("hello");
if(s1 == s2)
System.out.println("both are same");
else
System.out.println("not same");
}
}
1) equals() method compare the content of the string
2) == operator compares the reference of the string objects
11 years ago
is there any openings for java fresher
11 years ago