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
Implement two stacks using a single array.
How to compare two strings in java program?
What do you mean by chromounits in java8?
How are java objects passed to a method and what are native methods?
How many bits is a 64 bit byte?
What are the different types of garbage collectors in java?
When wait(), notify(), notifyall() methods are called does it releases the lock or holds the acquired lock?
Difference between concurrent hashmap and hashtable and collections
What is meant by method overriding?
Is zero a positive integer?
What about interthread communication and how it takes place in java?
How does multithreading take place on a computer with a single cpu in java programming?
How are this() and super() used with constructors in java programming?
What is the difference between a local variable and an instance variable?
Why java is called not pure object oriented language?