whats the difference between == and .equal ?

Answer Posted / tarun

equals() method compare the character inside the string object

== operator compare two object reference to see whether they
refer same instance

Is This Answer Correct ?    12 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

who can i handle multiple client in RMI

1435


How do you sort in ascending order in java?

516


What is the difference between a factory and abstract factory pattern?

681


What do you understand by looping in java? Explain the different types of loops.

557


What are synchronized methods and synchronized statements in java programming?

568






What is the use of static methods?

581


What is jagged array in java?

524


Why do we declare a class static?

537


Can you run java program without main method?

541


Add a value x to array from index l to r where 0 <= l <= r <= n-1

620


What is passing by reference in java?

535


What is function and method in java?

516


Tell me about your ability to work under pressure

1765


What is unicode in java?

501


What is abstract class? Explain

589