whats the difference between == and .equal ?

Answer Posted / guest

== compares the objects but .equals compare the value of the
objects.

Is This Answer Correct ?    18 Yes 9 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is a java lambda expression?

549


What is append in java?

622


Java is pass by value or pass by reference? Explain

529


What is the difference between hashmap and hashtable? What is an interface?

498


What are three ways in which a thread can enter the waiting state in java programming?

678






Will the jvm load the package twice at runtime?

570


List out benefits of object oriented programming language?

476


Do you know how to reverse string in java?

578


What are the steps that are followed when two computers connect through tcp?

515


What is a java developer salary?

536


Is array dynamic in java?

477


What is a priority queue java?

516


What happens if an exception is throws from an object's constructor?

621


What is flag in java?

528


What is the this keyword?

552