Class.getName() 클래스 이름만 가져옵니다. 클래스 이름은 어떻게 알 수 있나요? String.class.getName() returns java.lang.String 나는 오직 마지막 부분, 즉 String만을 얻는 것에 관심이 있다. 어떤 API라도 가능합니까?Class.getSimpleName()아래 두 가지 모두 잘 작동합니다. System.out.println("The Class Name is: " + this.getClass().getName()); System.out.println("The simple Class Name is: " + this.getClass().getSimpleName()); 출력은 다음과 같습니다. 클래스 이름은: 패키지입니다.학생입니다 간단한 클래스 이름은 ..