DEVFYI - Developer Resource - FYI

16 Q What is the difference between invokeAndWait() and invokeLater()?

Swing AWT Interview Questions


(Continued from previous question...)

16 Q What is the difference between invokeAndWait() and invokeLater()?

A invokeAndWait is synchronous. It blocks until Runnable task is complete. InvokeLater is asynchronous. It posts an action event to the event queue and returns immediately. It will not wait for the task to complete

(Continued on next question...)

Other Interview Questions