java get class field name code example Example: java get class name of object myObject.getClass().getName()