Core Java Interview Questions and Answers
<< Previous Question Next Question >>
 Question: 826 Page Views: 

How is it possible for two String objects with identical values not to be equal under the == operator?



Posted By: Avi Date: 9 November 2010 08:44:54 AM
 Answer:

The == operator compares two objects to determine if they are the same object in memory. It is possible for two String objects to have the same value, but located indifferent areas of memory.


Posted By: avibtech


Date: 9 November 2010 08:44:54 AM
Post a better Answer if you have
 
(Will show your Gravatar icon)  
  Country flag

Loading
Enter the text as shown in the image kmbmb9
Related Questions
Core Java : How are commas used in the intialization and iteration  parts of a for statement?

How are commas used in the intialization and iteration parts of a for statement?

Commas are used to separate multiple statements within the initialization and iteration parts of a f....
Category: Core Java Date: 11/7/2010 11:29:53 AM
Core Java : What is thread’s initial state When it is created and started,?

What is thread’s initial state When it is created and started,?

The ready state
Category: Core Java Date: 11/7/2010 9:52:49 AM
Core Java : What is externalizable ?

What is externalizable ?

It is an interface that extends Serializable. It is having two different methods writeExternal() and....
Category: Core Java Date: 11/7/2010 9:51:51 AM
Core Java : What are synchronized methods and synchronized statements?

What are synchronized methods and synchronized statements?

Synchronized methods are methods that are used to control access to an object:where the thread onl....
Category: Core Java Date: 11/7/2010 9:19:49 AM
Core Java : Which Math method is used to calculate the absolute value of a number?

Which Math method is used to calculate the absolute value of a number?

The abs() method is used to calculate absolute values
Category: Core Java Date: 11/7/2010 9:08:53 AM