how to get name of the class in java code example
Example 1: getting class name in java
a.getClass().getName();
Example 2: java get class name of object
myObject.getClass().getName()
a.getClass().getName();
myObject.getClass().getName()