if two references are having same hash codes,is that means
those are refering to same object?
Answer Posted / dheerendra
If two objects are same then on equals obj1.equals(obj2)
return true as well as the hashCode will also be same but if
the hashCode of two objects are same then it is not sure
that objects would point to same reference.
| Is This Answer Correct ? | 2 Yes | 0 No |
Post New Answer View All Answers
How objects of a class are created if no constructor is defined in the class?
What is the default size of arraylist in java?
How does class forname work in java?
Is class is a data type?
What are the changes in java.io in java 8 ?
Is java free for commercial?
What do you understand by the bean persistent property?
What is dynamic binding(late binding)?
How do you control extraneous variables?
Can you access non static variable in static context?
Can we override private method in java?
What is generic class?
What is object-oriented paradigm?
What is OOP's Terms with explanation?
Hi all, I am dng a mini project on FileSplitter application which splits the GBs of logfile into Smaller chunks(mbs) depending on the split size." How to handle GBs file? I am getting OutOfMemoryException, when I input such GB sized file. Thx