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
- Data Science
- Android
- AJAX
- ASP.net
- C
- C++
- C#
- Cocoa
- Cloud Computing
- HTML5
- Java
- Javascript
- JSF
- JSP
- J2ME
- Java Beans
- EJB
- JDBC
- Linux
- Mac OS X
- iPhone
- MySQL
- Office 365
- Perl
- PHP
- Python
- Ruby
- VB.net
- Hibernate
- Struts
- SAP
- Trends
- Tech Reviews
- WebServices
- XML
- Certification
- Interview
categories
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
Count number of vowels, consonants and digits in a String in Java
Student marks calculation program 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
Archived Comments
1. is this code applicable if I used USB GSM Modem? a
View Tutorial By: Rania at 2010-09-14 12:33:15
2. Thanks a lot for this very fruitful and amazingly
View Tutorial By: Gaurav Saxna at 2011-06-15 06:20:18
3. Good example.
Leslie V
www.g
View Tutorial By: Leslie V at 2009-10-14 00:47:06
4. The code gives the following exception :-
<
View Tutorial By: anju at 2014-03-15 07:02:18
5. May I have some examples of function exp and pow,
View Tutorial By: janee at 2009-08-06 07:57:07
6. Hi every one. I am working on my project in j2me a
View Tutorial By: wazir at 2010-11-26 08:27:43
7. Thanks for the above description, but pls let me k
View Tutorial By: Amit Goyal at 2009-09-25 05:33:10
8. The code gives the following exception :-
<
View Tutorial By: waqar at 2012-07-26 17:02:07
9. I have ran this code but each port has raised an &
View Tutorial By: Jawnie at 2012-03-29 07:23:22
10. great.....
View Tutorial By: rashid at 2009-12-07 03:22:46