JAVA Language INTERVIEW QUESTION & ANSWERS
5. |
What are the components of J2EE application? |
|
A J2EE component is a self contained functional software unit that is assembled into a J2EE application with its related classes and files and communicates with other components. The J2EE specification defines the following J2EE components.-
Application clients and applets are client components.
-
Java Servlet and JavaServer PagesTM (JSPTM) technology components are web components.
-
Enterprise JavaBeansTM (EJBTM) components (enterprise beans) are business components.
-
Resource adapter components provided by EIS and tool vendors.
|
6. |
What is Java Beans? |
|
Java Beans is the name of a project at JavaSoft to define a set of standard component software APIs (Application Programmer Interface) for the Java Platform. By developing these standards it becomes possible for software developers to develop reusable software components that end users can then hook together using application builder tools. In addition, these API's make it easier for developers to bridge the existing component models such as Microsoft's ActiveX, Applet's OpenDoc and Netscape's LiveConnect. |
7. |
Why there are no global variables in Java? |
|
Global variables are globally accessible. Java does not support globally accessible variables due to following reasons -
The global variables break the referential transparency.
-
Global variables create collisions in namespace.
|
8. |
Is HTML page a web component? |
|
No. static HTML pages and applets are bundled with web components during application assembly, but are not considered web components by the J2EE specification. Even the server side utility classes are not considered web components, either. |