Java Swing Interview Questions and Answers
Question: What is the What is the difference between invokeAndWait() and invokeLater()?Answer: invokeAndWait() method in swing is synchronous. It blocks until Runnable task is complete. InvokeLater() method in swing is asynchronous. It posts an action event to the event queue and returns immediately. It will not wait for the task to complete. |
Save For Revision
Bookmark this item, mark it difficult, or place it in a revision set.
Log in to save bookmarks, difficult questions, and revision sets.
Is it helpful?
Yes
No
Most helpful rated by users:
- Why does it take so much time to access an Applet having Swing Components the first time?
- What\'s Java Swing?
- What are the differences between Swing and AWT?
- What is JFC?
- What is AWT?