Organizational Research By

Surprising Reserch Topic

How can I delay a Java program for a few seconds?


I have tried to delay - or put to sleep - my Java program, but an error occurs.

I'm unable to use Thread.sleep(x) or wait(). The same error message appears:

unreported exception java.lang.InterruptedException; must be caught or declared to be thrown.

Is there any step required before using the Thread.sleep() or wait() methods?


asked May 9, 2015 in Asp.Net by rajesh
0 votes
28 views



Related Hot Questions

2 Answers

0 votes
NULL
answered May 9, 2015 by rajesh
0 votes
NULL
answered May 9, 2015 by rajesh

...