Field field = object.getClass().getDeclaredField(fieldName); field.setAccessible(true); Object value = field.get(object);