what is the difference between equals method and ==
Answer Posted / sriragv
equal method also indirectly use == method i.e hashcode
(),there will be no difference b/w equals and == unless
until u override the equal method
Let me know if iam wrong
Is This Answer Correct ? | 3 Yes | 0 No |
Post New Answer View All Answers
Which is fastest collection in java?
What is lastindexof in java?
What are the classes of java?
Can we split string with in java?
What is a subsequence of a string?
What are the default and parameterized constructors?
What are the ways in which a thread can enter the waiting state?
What is memory leak and how does java handle it?
What is rmi and steps involved in developing an rmi object?
What is a nested structure?
How to display all the prime numbers between 1 and n (n is the number, get the input from user)
Are functions objects in java?
Make a data structure and implement an algorithm to print all the files in a directory. (The root directory can have sub-directories too.)
Difference between a class and an object?
How do you join strings in java?