Java GUI Framework Question:
Download Questions PDF

What is Event-Driven-Thread (EDT) in Swing?

Java GUI Framework Interview Question
Java GUI Framework Interview Question

Answer:

Event-Driven-Thread or EDT is a special thread in Swing and AWT. Event-Driven Thread is used to draw graphics and listen for events in Swing. You will get a bonus point if you able to highlight that time consuming operations like connecting to database, opening a file or connecting to network should not be done on EDT thread because it could lead to freezing GUI because of blocking and time consuming nature of these operations instead they should be done on separate thread and EDT can just be used to spawn those thread on a button click or mouse click.

Download Java GUI Framework Interview Questions And Answers PDF

Previous QuestionNext Question
What is an SSCCE?Does Swing is thread safe? What do you mean by swing is not thread-safe?