Organizational Research By

Surprising Reserch Topic

Experts Most Trusted 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

Related Hot Questions

Walkin Jobs Opening

Government Jobs Opening