Explain the difference between swing and AWT?
Submitted by: Administrator• AWT is a heavyweight component that is used to associate the language with the native component. Whereas, Swing is the lightweight component that doesn't associate, any language with the component that it uses.
• AWT draws the own component on the screen and it uses their own view-port that sends the output to the screen that displays the result. Whereas, Swing doesn't include any writing option to show the result on the screen so it does redirect to the components that makes it.
• AWT components are of the z-ordering and it is not possible to combine any other in the same container. Whereas, Swing doesn't include the z-ordering and it always come below the AWT.
• AWT is less consistent when used on different platforms. Whereas, Swing is more consistent across different platforms.
Submitted by: Administrator
• AWT draws the own component on the screen and it uses their own view-port that sends the output to the screen that displays the result. Whereas, Swing doesn't include any writing option to show the result on the screen so it does redirect to the components that makes it.
• AWT components are of the z-ordering and it is not possible to combine any other in the same container. Whereas, Swing doesn't include the z-ordering and it always come below the AWT.
• AWT is less consistent when used on different platforms. Whereas, Swing is more consistent across different platforms.
Submitted by: Administrator
Read Online Swing AWT Job Interview Questions And Answers
Top Swing AWT Questions
☺ | What is JFC and explain the features of JFC? |
☺ | What is the purpose of action interface in Swing? |
☺ | What is the use of double buffering in swings? |
☺ | Explain difference between Swing and JSF? |
☺ | What is the purpose of Transfer Handler Class? |
Top Java Programming Language Categories
☺ | Core Java Interview Questions. |
☺ | Hibernate Interview Questions. |
☺ | Advanced Java Interview Questions. |
☺ | IBM WebSphere Interview Questions. |
☺ | Spring Framework Interview Questions. |