What is stub?

Stubs are classes that provide replacement implementations for the actual classes client side component to send request to the server in RMI. In the context of advanced Java programming, a “stub” typically refers to a component used in remote method invocation (RMI). RMI is a mechanism that allows objects to invoke methods on objects running … Read more

What is Hashmap & Hashtable with example?

Hashtabel is original collection classes in java which was introduced as version 1.2 that HashMap permits null values in it, while Hashtable doesn’t. In advanced Java, HashMap and Hashtable are both data structures that store key-value pairs, but they have some differences. HashMap: Introduced in Java 1.2 as part of the Java Collections Framework. It … Read more