This question I am asking on the basis of my research as I was going through the source code of hashmap in decomplier , please advise Can I also create my own custom HashMap as the java HashMap is , Please advise how Can I create my own custom HashMap named MyMap..!1
2 Answers
If you want to write your own implementation of HashMap, simply implements the Map interface and implement its methods the way you want:
public class HashMap<K,V> implements Map<K,V>, Cloneable, Serializable {
    @Override
    clear() { // My implementation
    }
    // Other methods
}
You may also want to extend the AbtractMap abstract class that provides a skeletal implementation of the Map interface, to minimize the effort required to implement this interface.
Comments
you can see the source code for HashMap in java and write of your own.
go check this linkHashMap java doc
HashMapmissing?