Friday, August 13, 2010

Advanced Java - 5


76. What are the components which are termed to be Heavy-weight, available in Light-weight component?.


77. What are invisible components?.
They are light weight components that perform no painting, but can take space in the GUI.

78. What is the default layout for a ContentPane in JFC?.
BorderLayout.

79. What are the borders provided by Swing?.
(i) Simple        (ii) Matte        iii) Titled    iv) Compound.

80. What does Realized mean?.
Realized mean that the component has been painted on screen or that is ready to be painted. Realization can take place by invoking any of these methods.
setVisible(true), show() or pack().

81. What is a convertor?.
Its an application that converts distance measurements between metric and U.S units.

82. What is the return type of interrupt method?.        void.
83. What is the superclass of exception?.        Throwable.
84. What is servlet exception?.            It indicates that there is a problem in the servlet.
85. What is the difference between a Canvas and a Scroll Pane?.                         .
Canvas ScrollPane
Its a component    Its a container
A rectangular area where the application can draw or trap input events.  Implements horizontal and vertical scrolling.

86. What are the restrictions imposed by a Security Manager on Applets?.
i) cannot read or write files on the host that's executing it.

ii) cannot load libraries or define native methods.

iii) cannot make network connections except to the host that it came from

iv) cannot start any program on the host that's executing it.

v) cannot read certain system properties.

vi) windows that an applet brings up look different than windows that an application brings up.

87. Can we access a database using applets?.            Yes.
88. What is the default HttpRequest method?.            doGet().
89. What is the life cycle of a servlet?.
Removing Handling zero or more client requests.Loading and Initializing.
90. RPC stands for Remote Procedure Call.
91. The three layers in RMI are Application Layer,RemoteReferenceLayer and Network Layer.

No comments:

Post a Comment