Computer Knowledge

Java Enterprise and Web Technologies

2,279 Questions

Java enterprise and web technologies questions focus on J2EE architecture, web services like SOAP, and servlet functionalities. These topics frequently appear in IT officer and specialist scale examinations. Regular practice ensures familiarity with enterprise application components.

HttpServlet methodsSOAP and web servicesEJB architecture rolesJ2EE componentsJSP servlet callingUDDI concepts

Java Enterprise and Web Technologies Questions

Multiple choice technology web technology
  1. Master Page

  2. Page Class

  3. Session Class

  4. None of the Above

Reveal answer Fill a bubble to check yourself
B Correct answer
Explanation

All ASP.NET Web Forms inherit from the Page class (System.Web.UI.Page), which provides the base functionality for web pages including the request lifecycle, events, and common properties. Master Pages are used for shared layouts, and Session Class manages session state, not page inheritance.

Multiple choice technology platforms and products
  1. Session objects

  2. Application objects

  3. ViewState

  4. All the Above

Reveal answer Fill a bubble to check yourself
D Correct answer
Explanation

ASP.NET provides multiple state management mechanisms. Session objects store user-specific data, Application objects maintain global application state, and ViewState preserves page state across postbacks. All three are valid approaches.

Multiple choice technology web technology
  1. JSP Implementation class file

  2. JSP page Implementation class

  3. JSP file Implementation class

  4. JSP class Implementation file

Reveal answer Fill a bubble to check yourself
A Correct answer
Explanation

When a JSP (JavaServer Page) is compiled by the web container, it generates a Java class file that implements the servlet interface. This generated class is commonly referred to as the JSP Implementation class file. It contains the translated JSP code along with the servlet lifecycle methods.

Multiple choice technology web technology
  1. Client information

  2. Server information

  3. Container information

  4. Setup information

Reveal answer Fill a bubble to check yourself
B Correct answer
Explanation

Initialization parameters in Java EE and application servers are used to convey server information to the application developer. These parameters configure server-specific settings, connection pools, JNDI resources, and other server-side operational information that the application needs to know about.

Multiple choice technology web technology
  1. Remote Interface

  2. Bean Interface

  3. Home Interface

  4. Bean Class

Reveal answer Fill a bubble to check yourself
C Correct answer
Explanation

The Home Interface in EJB (Enterprise JavaBeans) defines the methods for creating, removing, and finding EJB objects of a specific type. It's the factory interface that clients use to obtain references to EJB objects. The Remote Interface defines business methods, the Bean Class contains the implementation, and the Bean Interface is not a standard EJB term.

Multiple choice technology web technology
  1. JSP files,Class files for servlets

  2. GIF and HTML files

  3. Deployment Descriptor

  4. All of above

Reveal answer Fill a bubble to check yourself
D Correct answer
Explanation

A web container contains all the resources required to run a web application, including JSP files, servlet class files, deployment descriptors (web.xml), and static assets like GIF and HTML files. Thus, all of the listed options are correct.

Multiple choice technology web technology
  1. HttpServletRequest

  2. HttpServletResponse

  3. SessionContext

  4. SessionConfig

Reveal answer Fill a bubble to check yourself
A Correct answer
Explanation

In Java EE servlets, the HttpServletRequest interface provides the getSession() method that returns the HttpSession object for the current request. HttpServletResponse is for sending responses, and SessionContext/SessionConfig are not standard servlet APIs for session retrieval.

Multiple choice technology web technology
  1. CLR

  2. CAS

  3. Both A) and B)

  4. None of the Above

Reveal answer Fill a bubble to check yourself
B Correct answer
Explanation

Code Access Security (CAS) is the .NET security mechanism that restricts what code can do based on permissions, preventing malicious or buggy code from performing dangerous operations like formatting the hard disk. CLR manages execution but doesn't enforce security boundaries.

Multiple choice technology web technology
  1. PSAPPSRV.CFG

  2. PSPRCS.CFG

  3. PSNTSRV.CFG

  4. PSAPPDOM.CFG

Reveal answer Fill a bubble to check yourself
A Correct answer
Explanation

PSAPPSRV.CFG is the master configuration file for a PeopleSoft application server domain. It contains all domain settings including connection parameters, server process counts, and domain characteristics. PSPRCS.CFG is for process scheduler, PSNTSRV.CFG doesn't exist as a standard file, and PSAPPDOM.CFG is not a valid configuration filename.

Multiple choice technology web technology
  1. Namespace

  2. Assembly

  3. Reference

  4. Object

Reveal answer Fill a bubble to check yourself
A Correct answer
Explanation

In web services (specifically using XML and WSDL), namespaces serve the same purpose as packages in programming languages - they organize elements and prevent naming conflicts. Namespaces uniquely identify elements in XML documents.

Multiple choice technology web technology
  1. the page has only one form

  2. the page has multiple forms and the developer is familiar with developing GUI appliciations

  3. Java Script is not preferred

  4. light weight web application is being developed

Reveal answer Fill a bubble to check yourself
B Correct answer
Explanation

JSF (JavaServer Faces) is a component-based framework ideal for complex pages with multiple forms and complex UI logic, especially when developers have GUI application experience. JSP is simpler and more suitable for lightweight applications with minimal form complexity. JSF provides better state management and event handling for complex interfaces.

Multiple choice technology
  1. True

  2. False

Reveal answer Fill a bubble to check yourself
A Correct answer
Explanation

The Java Virtual Machine (JVM) is indeed the run-time system that executes Java bytecode. It provides the environment where Java programs run, handling memory management, garbage collection, and platform independence through the 'write once, run anywhere' principle.

Multiple choice technology
  1. Random Memory Interface

  2. Remote Method Invocation

  3. Random Method Invocation

  4. Remote Memory Interface

Reveal answer Fill a bubble to check yourself
B Correct answer
Explanation

RMI stands for Remote Method Invocation, which allows Java objects running in one JVM to invoke methods on objects running in another JVM. This enables distributed Java applications where objects can communicate across different machines or processes.