what is the difference between equals method and ==

Answer Posted / thevendhiran.k

equal method is used to check whether the two strings are
equal(same). exmpl: if the 1st string is 'deva' then it ll
check the 2nd is also 'deva'. whereas = is a assignment
operator used to assign a value to the variable.

Is This Answer Correct ?    13 Yes 54 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the reflection?

565


can any body body expalin best definitions & best real time exaples for opps concepts.

1843


Explain about class in java?

613


Can we create our own daemon thread?

544


why not override thread to make a runnable? : Java thread

561






What is java virtual machine? Explain

571


What is the difference between yielding and sleeping?

562


What value is a variable of the string type automatically initialized?

616


Can we override static methods in java?

591


How many functional interfaces does java 8 have?

608


How many bits is a boolean?

627


Explain the importance of thread scheduler in java?

601


What sorting algorithm does javascript use?

530


How do you compare values in java?

549


Give some features of interface?

586