Difference between swing and awt?



Difference between swing and awt?..

Answer / Rajnish Mohan Saxena

Swing is a lightweight GUI library built on top of AWT (Abstract Window Toolkit). The main differences are that Swing components are platform independent, more flexible, efficient, and easy to customize. While AWT uses heavyweight components, which are slower and less versatile.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Advanced Java Interview Questions

Explain RMI Architecture?

1 Answers  


what about static?

1 Answers  


How will you pass parameters in RMI? Why do you serialize?

1 Answers  


What is synchronization?

6 Answers   Verizon,


what is meant by JRMP?

1 Answers  


What state a thread enters, When it blocks on I/O?

2 Answers  


1) which method of the RequestDispatcher cannot be called once the output is sent to the client? a. forward b. include c. both a&b 2) which interface should an object implement to get notified of changes to the list of active sessions in a web application? a. HttpSessionListener b. HttpSessionActivationListener c. HttpSessionAttributeLIstener 3) A user can select multiple locations from a list box on an HTML form, which of the following methods can be used to retrieve all the selected location? a. getParameter() b. getParameterValues() c. getParamValues() 4) which of the following methods should be used to send character text to the client? a. ServletResponse.getWriter() b. ServletResponse.getOutputStream() c. ServletResponse.getOut() 5) which implicit object is always available in a JSP page? a. exception b. session c. out 6) which inclusion mechanism doesn't include the source of the page, rather the output of the page. a. include directive b. jsp:include action c. Bothe a& b 7) which attribute of the page controls whether a page participates in session or not? a. session-allowed b. session c. isSession

1 Answers  


What is colon_pkg_prefixes and what is its use?

1 Answers  


What modifiers may be used with an interface declaration?

1 Answers  


types of exceptions

1 Answers  


which deployment descriptor element is used to configure the authentication method? a. auth-config b. login-config c. sec-config

1 Answers  


Explain the purposes of methods wait(), notify(), notifyAll ()?

2 Answers  


Categories