Answer Posted / sheetal sikarwar
hash code is integer value that is return by JVM. when we
compare object by equals() method then this will return
hash code value of object. if this value is same that means
object's memory location is same. that meand object is same.
when we are saving object in HashSet, HashMap and HashTable
then this object will save by Dictonary class. this
Dictonary class is Abstact class that save object with hash
code value.
| Is This Answer Correct ? | 7 Yes | 1 No |
Post New Answer View All Answers
Can a class declared as private be accessed outside it’s package?
When a thread is executing synchronized methods , then is it possible to execute other synchronized methods simultaneously by other threads?
how to create multithreaded program? Explain different ways of using thread? When a thread is created and started, what is its initial state? Or extending thread class or implementing runnable interface. Which is better? : Java thread
What is the function of http?
Can a class have more than one object?
Is assembly language a low level language?
Write an algorithm program in java for the following question.. In a VLSI design techniques,they used rectangles to design circuits. EVery rectangle is to be placed according to x,y coordinates. Check whether or not two rectangles overlap each other. Here overlapping of rectangles is acceptable, if 1) one rectangle intersect with other. 2) one rectangle fully covers other. The time of algorithm should not exceed o(n logn).
Define how destructors are defined in java?
Is java a utf 8 string?
What's a method in programming?
What is the difference between class forname and new?
What are the features of junit?
What happens when you invoke a thread’s interrupt method while it is sleeping or waiting?
What is meant by flickering?
Explain about automatic type conversion in java?