It depends on the naming convention. Some people follow IMap and Map; Map and MapImpl; Map and HashMap etc. However, if the name is an adjective (for example, Serializable or Comparable), it is hard to imagine that it will be a class. You can also use java.lang.Class.forName ("MyInterface"). IsInterface () for this purpose.
source
share