[7급 국가직 프로그래밍언어론 2011년 16번]

다음 Java 프로그램이 정상적으로 실행되기 위해 ㉠과 ㉡에 들어갈 내용으로 옳은 것은?
class ThreadTest implements ㉠ {
   public void run() {
      System.out.println("쓰레드 실행부분....");
   }
}
public class ImplOfThread {
   public static void main(String[] args) {
      Thread t = new Thread(new ThreadTest());
      System.out.println("Before");
      ㉡
      System.out.println("After");
   }
}
㉠ ㉡
프로그래밍언어론
  1. ①Thread t.join();
  2. ②Thread t.start();
  3. ③Runnable t.join();
  4. ④Runnable t.start();

선지를 골라 바로 채점해 보세요.

정답 ④

출처: 인사혁신처 공개 기출(공공데이터포털, 이용허락 제한 없음)

신고가 접수됐습니다. 감사합니다.

오류 신고