이번 포스팅에서는 자바(Java)에서 this 예약어에 대하여 공부를 해보고자 한다. this 예약어 this란 간단히 설명하면 생성된 인스턴스 스스로를 가리키는 예약어를 말한다. 이 외에도 다른 역할로 this를 사용할 수 있다. 자신의 메모리를 가리키는 this 생년월일을 의미하는 BirthDay 클래스를 만들고, this를 출력하는 메서드를 추가한다. class BirthDay { int day; month; int year; public void setYear(int year) {//태어난 연도를 지정하는 메서드 this.year = year; } public void printThis() {//this 출력 메서드 System.out.println(this); } } public class Th..