java how to get class name without package code example Example: java get class name of object myObject.getClass().getName()