Inheritance Definitions 다른 클래스에서 파생된 클래스를 서브 클래스라고 한다. 서브 클래스로 파생시킨 클래스를 슈퍼 클래스라고 한다. 슈퍼 클래스가 없는 Object를 제외한 모든 클래스가 단 하나의 직접적인 슈퍼 클래스를 갖는다. 다른 명시적 슈퍼 클래스가 없다면 모든 클래스는 암시적으로 Object의 서브 클래스가 된다. ...
Interface 소프트웨어 엔지니어링에서는 서로 다른 프로그래머 그룹이 소프트웨어의 상호 작용 방식을 명시하는 '계약'에 동의하는 것이 중요한 여러 상황이 있다. 이때 각 그룹은 다른 그룹의 코드가 어떻게 작성되었는지에 대한 지식 없이도 자신의 코드를 작성할 수 있어야 한다. 일반적으로 인터페이스는 이러한 계약을 말한다. Interface in J...
Concurrency Processes and Thread 동시성 프로그래밍에는 프로세스와 스레드라는 두 가지 기본 실행 단위가 있다. Java 프로그래밍 언어에서 동시성 프로그래밍은 주로 스레드와 관련이 있다. 하지만 프로세스도 중요하다. 컴퓨터 시스템에는 일반적으로 많은 활성 프로세스와 스레드가 있다. 이는 실행 코어가 하나만 있어 특정 순간에...