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 |
Explain RMI Architecture?
what about static?
How will you pass parameters in RMI? Why do you serialize?
What is synchronization?
what is meant by JRMP?
What state a thread enters, When it blocks on I/O?
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
What is colon_pkg_prefixes and what is its use?
What modifiers may be used with an interface declaration?
types of exceptions
which deployment descriptor element is used to configure the authentication method? a. auth-config b. login-config c. sec-config
Explain the purposes of methods wait(), notify(), notifyAll ()?