Yes there is a way to print the classname in java console.
For that you need to override the toString() method in the class created by you. From the toString() method return the name of the class...