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



Comment Added by : Fins

Comment Added at : 2011-12-14 04:40:09

Comment on Tutorial : equals( ) Versus == in Java By Mashoud
Hi Guys, thanks for sharing this... I have some more doubt.

1. String s1= new String("Hello");
String s2="Hello";

Here, whether s2 will point to the same location as s1?

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

What will be the output of these 2 scenarios?


View Tutorial



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. pls help how to fetch vowels as a first letter of
View Tutorial          By: anjali at 2014-09-18 20:45:49

2. I am geting following exception
javax.comm

View Tutorial          By: Raviteja at 2014-06-23 12:46:06

3. Hi every body.. I accomplished the task of sending
View Tutorial          By: Ashray P Shetty at 2010-11-18 06:25:54

4. hi,
please anyone tell me how to send bulk

View Tutorial          By: Nasrin at 2012-10-21 18:59:50

5. It has been really helpful for me to gather inform
View Tutorial          By: sonam at 2009-03-08 09:41:33

6. nice one to understand the basic steps of jdbc....
View Tutorial          By: trishna at 2011-06-10 00:04:21

7. hi there, i was testing your code-samples,

View Tutorial          By: Douglas at 2011-04-07 22:35:56

8. Wow, damn nice. It does everything, and the script
View Tutorial          By: Ethan Windsor at 2012-06-14 13:47:39

9. Everything is running.... But it doesn't send....
View Tutorial          By: Amirtharaj at 2009-04-14 05:26:26

10. Hai,
dis is anu, dng final year. i need to

View Tutorial          By: anu at 2012-07-12 15:41:19