61. What is an abstract class?.
A class which cannot be Instantiated.
62.ServletRunner options are:
-p-port number(8080).
-b-backlog connections(50).
-m-maximum no.of connection handlers(100).
-t-connection timeout in milliseconds
-d-servlet directory (current directory)
-s-servlet properties file
63.How many standard ports are available?.
1024.
64.What is a policy?.
It's an abstract class for representing the system security policy for a Java application environment(specifying which permissions are available for code from various sources). Java security properties file resides in <JAVA-HOME>/lib/security/java.security directory. Value of "policy.provider" should be changed.
65. What are different ways of Session-Tracking?.
(i) User-Authorization
(ii) Hidden Files
(iii) Persistant Cookies
(iv) URL Rewriting.
66. If the browser does not support cookies or if they are disabled, how is session tracking done?
Session tracking is done by URL Rewriting.
* Multiple requests can be handled by a servlet and it also can synchronize them.ex: On-line conferencing.
* Servlets have no Graphic User Interface.
* We can synchronize the service() method for a major performance impact as multiple requests are involved in case of servlets.
* We can make a servlet handle a single client/request by implementing single threadmodel interface.
67. What is a Swing?.
It is a GUI component with a pluggable look and feel.
68. What is default Look-and-Feel of a Swing Component?.
Java Look-and-Feel.
69. Awt Components and Swing Components can be inter-mingled in an Application - False
70. What are the features coming with JFC?.
(i) Pluggable Look-and-Feel
(ii) Accessibility API
(iii) Java 2D/API(JDK 1.2).
(iv) Drag and Drop Support(JDK 1.2)
71. What does x mean in javax.swing?.
Extension of java.
72. Images can be displayed on Swing Components
- True
73. Borders can be changed or added for a LightWeight Components
- True
74. Swing Components are always rectangular
- False
75. When Swing components overlap with Heavyweight components, it is the latter that is on the top
- True
No comments:
Post a Comment