what is the difference between equals method and ==

Answer Posted / ravikiran

equals will compare two objects,== will compare whether two
reference variables refer to same object or not

Is This Answer Correct ?    9 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is role of void keyword in declaring functions?

570


What is an object in java?

553


What is the use of toarray () in java?

535


What is the difference between a window and a frame in java programming?

587


What are the types of sockets in java?

538






Explain access specifiers?

655


What are the java ide’s?

571


Write a program to find the whether a number is an Armstrong number or not?

571


What is the maximum size of array in java?

510


Define class?

514


What is garbage collection? What is the process that is responsible for doing that in java?

649


What does string [] args mean?

537


What is methods in java?

510


What does flagged out mean?

568


What are identifiers in java?

571