Java zdobądź klasę
//Just the name of the class
myObject.getClass().getSimpleName();
//The name of the class with the package name
myObject.getClass().getName();
//Just the name of the class
myObject.getClass().getSimpleName();
//The name of the class with the package name
myObject.getClass().getName();