what is the difference between equals method and ==
Answer Posted / sandeep arora
== checks the reference value, that the reference are of
same object or not.
equals method check two strings are same or not
Is This Answer Correct ? | 26 Yes | 7 No |
Post New Answer View All Answers
How is Object Oriented Programming different from Procedure Oriented Programming?
Which keyword specify that a variable is effectively final ?
What is an interface in java? Explain
What carriage return means?
Why we do exception handling in java and how many types of exceptions are there?
What is scope & storage allocation of global and extern variables? Explain with an example
What is string syntax?
Is null == null in java?
What is Mutex (Mutual Exclusion Object) ?
What is collections framework?
Can inner class have constructor?
what are three ways in which a thread can enter the waiting state? Or what are different ways in which a thread can enter the waiting state? : Java thread
What are three ways in which a thread can enter the waiting state in java programming?
what is meant by encapsulation?
Explain notifyall() method of object class ?