what is the difference between equals method and ==

Answer Posted / sandeep arora

== checks the reference value, that the reference are of
same object or not.

equals method check two strings are same or not

Is This Answer Correct ?    26 Yes 7 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Is empty in java?

580


what is mena by object block any what is the use of that

1770


when a request is generated from apache tomcat 5.5 and goes to oracle 10g or mysql,,, how the oracle or mysql reads the request as apache is a web server and oracle 10g is application server? when the oracle 10g provides response, how the apche tomcat reads it???

1670


Mention some features of java?

536


How will you serialize a singleton class without violating singleton pattern?

1519






What are data structures in java?

527


Differentiate between class and structure.

628


Describe the term diamond problem.

573


What is string and its types?

609


What are the advantages of exception handling?

550


What is the difference between synchronized and synchronized block?

499


What is widening and narrowing in java? Discuss with an example.

554


What are predefined functions?

570


What is difference between string and new string?

534


What is replacefirst in java?

571