중첩 클래스는 다른 클래스 안에 정의된 클래스입니다. Java에는 네 가지 종류 — static nested, inner(비static), local, anonymous — 가 있으며, 각각 둘러싼 클래스에 대한 접근과 사용 사례가 다릅니다.
1. static nested 클래스 — 인스턴스와 독립적
{
;
{
{
System.out.println(data);
}
}
}
Outer. .Nested();
