The Artima Developer Community
Sponsored Link

Java Buzz Forum
Difference between == and equals() method in Java - String Object

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
Javin Paul

Posts: 1090
Nickname: javinpaul
Registered: Jan, 2012

Javin Paul is Java Programmer working on Finance domain.
Difference between == and equals() method in Java - String Object Posted: Nov 3, 2012 10:15 PM
Reply to this message Reply

This post originated from an RSS feed registered with Java Buzz by Javin Paul.
Original Post: Difference between == and equals() method in Java - String Object
Feed Title: Java67
Feed URL: http://www.java67.com/feeds/posts/default?alt=rss
Feed Description: Java and technology tutorials, tips, questions for all programmers.
Latest Java Buzz Posts
Latest Java Buzz Posts by Javin Paul
Latest Posts From Java67

Advertisement


What is difference between == and equals() method for comparing Objects in Java is one of the classical Interview Questions which appears now and then on many interviews. This question is mostly asked in conjunction with String because comparing String using == and equals() method returns different results. I have often seen as along with other popular String  question e.g. StringBuffer vs StringBuilder, Why String is final etc.  Java is a pure object oriented language and every object has one state and location in the memory and equals () and == are related with the state and location of the object, now in this article will try to understand this concept and difference between == and equals method in Java.
Read more »

Read: Difference between == and equals() method in Java - String Object

Topic: A Framework for Enterprise Software Previous Topic   Next Topic Topic: Java features applicability

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use