what is the difference between equals method and ==

Answer Posted / suganthi

equals method will compare two strings where two strings are
equal or not but == method will compare reference variables.

Is This Answer Correct ?    4 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is java string pool?

551


Write a program to print the pattern given below

509


What is a java predicate?

541


Is object a data type?

566


What modifiers may be used with an inner class that is a member of an outer class in java programming?

542






Why are parameters used in functions?

540


In java, what is the difference between method overloading and method overriding?

591


What is namespace in java?

550


What is difference between Heap and Stack Memory?

547


Is a class subclass of itself?

620


What is general methodology?

578


What are the java ide’s?

579


What is a package in java? List down various advantages of packages.

766


what is heap memory?

662


What is deserialization?

593