You can simply this question as No, Swing is not thread-safe, but you have to explain what you mean by that even if interviewer doesn't ask about it. When we say swing is not thread-safe we usually refer its component, which can not be modified in multiple threads. All update to GUI components has to be done on AWT thread, and Swing provides synchronous and asynchronous callback methods to schedule such updates.
-
Previous Java ProgrammingDifference between invokeAndWait and invokeLater in Java?
-
Next On Java Programming
No Comment to " Is Swing thread-safe? What do you mean by Swing thread-safe? "