Comment on Tutorial - equals( ) Versus == in Java By Mashoud



Comment Added by : vijay

Comment Added at : 2011-08-21 15:09:41

Comment on Tutorial : equals( ) Versus == in Java By Mashoud
what ll be result for s1==s2 and s1.equals(s2) for following cases?
1)String s1="hello";
String s2="hello";

2)String s1 = new String("Hello");
String s2 = new String("Hello");

3)String s1="hello";
string s2=s1;


View Tutorial



Ask a Question

Subscribe to Tutorials

Related Tutorials

Program using concept of byte long short and int in java

Update contents of a file within a jar file

Tomcat and httpd configured in port 8080 and 80

Java File

Java String

Count number of vowels, consonants and digits in a String in Java

Reverse a number in Java

Student marks calculation program in Java

Handling Fractions in Java

Calculate gross salary in Java

Calculate average sale of the week in Java

Vector in Java - Sample Program

MultiLevel Inheritance sample in Java

Multiple Inheritance sample in Java

Java program using Method Overriding

Archived Comments

1. Can you Please send me the code for movable clock
View Tutorial          By: Rajagopal at 2008-09-29 23:10:57

2. Nice Work... Keep it..
View Tutorial          By: Ashok at 2010-02-28 05:12:31

3. Thanks for the insight. Easily understood.
View Tutorial          By: Bobby Deol at 2014-01-17 00:48:44

4. thank you for code
View Tutorial          By: turki at 2013-12-11 13:23:44

5. input can be taken simly with Console class

View Tutorial          By: Dinesh at 2012-06-29 11:18:23

6. I have successfully send sms after some trying....
View Tutorial          By: DILIP at 2012-01-19 14:38:50

7. i am looking for c programs in written
View Tutorial          By: ziyauddin at 2011-02-13 06:21:09

8. good.....not bad. .show me more programs.
View Tutorial          By: saranya at 2011-12-07 08:49:39

9. Thanks man it is very very helpfull for me.

View Tutorial          By: qasim azam at 2011-06-15 18:09:35

10. Java s ssssss
View Tutorial          By: zoya at 2012-04-27 12:24:59