본문 바로가기

java

timer schedule vs scheduleAtFixedRate [Timer] schedule vs scheduleAtFixedRate 예제로 이해하기 [출처] [Timer] schedule vs scheduleAtFixedRate 예제로 이해하기|작성자 써니타이머를 이용하여 백그라운드 스레드에서 반복적인 작업을 수행많은 응용프로그램들이 나중에 수행할 작업을 스케쥴하거나, 일정한 간격으로 반복적으로 수행하는 것을 필요로 합니다. J2SE v1.3에서는 두개의 추가된 Timer 클래스-java.util.Timer, java.util.TimerTask-를 통해 이것을 지원합니다. 이 팁은 이러한 타이머 클래스들을 이용하는 다양한 스케쥴 전략을 보여줍니다. 또한 잘 동작하지 않는 작업, 즉 너무 오래동안 수행되거나 또는 깨지는 작업을 핸들링하는 방법을 보여줍니다.java... 더보기
java.exe와 javaw.exe java.exe와 javaw.exe의 차이 java.exe는 콘솔윈도우와 더불어 실행되고javaw.exe는 콘솔윈도우가 없다. ===================================== javaw.exe와 java.exe는 동일한 명령입니다.javaw.exe가 콘솔과 무관하게 자바 어플리케이션을 구동시킨다는 점이 다릅니다.원문은 아래와 같습니다. The javaw.exe command is identical to java.exe, except that with javaw.exe there is no associated console window. This implies you can't get it to display the version with -version since there is no.. 더보기
thread exception Question::How to catch an Exception from a threadI have Java main class, in the class, I start a new thread, in the main, it waits until the thread dies. At some moment, I throw a runtime exception from the thread, but I can't catch the exception thrown from the thread in the main class.Here is the code:public class Test extends Thread { public static void main(String[] args) throws InterruptedE.. 더보기