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
-
JVM's default class loader is bootstrap
-
Java code is compiled into bytecode
-
JVM can run code in any language, provided it has been complied to bytecode meeting JVM specification
-
Java class file use little-endian format
-
Garbage collector is an integral part of JVM
D
Correct answer
Explanation
Java class files use big-endian byte order (most significant byte first) for all multi-byte data, making the statement that they use little-endian format false, and thus the correct answer.
-
ASP.NET Dynamic Data
-
Peer-to-Peer Networking
-
LINQ
-
HashSet Collection Type
A
Correct answer
Explanation
The question asks which feature was NOT introduced with .NET Framework 3.5. ASP.NET Dynamic Data was actually introduced with .NET Framework 3.5 SP1 (Service Pack 1), not the initial 3.5 release. LINQ, Peer-to-Peer Networking, and HashSet were all in the original 3.5 release.
-
Script language declarations, scriplets and expressions.
-
JSP standard actions
-
JSP standard directives
-
All the Above
D
Correct answer
Explanation
The Java Server Pages (JSP) specification defines scriptlet elements (declarations, scriptlets, and expressions), standard actions (like `), and directives (like<%@ page %>`), making all options correct.
-
Applet
-
Servlet
-
Application
-
Midlet
B
Correct answer
Explanation
JSP pages are compiled into Servlets by the JSP container. The first time a JSP is requested, it is translated into a Java source file for a Servlet, then compiled into bytecode. This Servlet generates the dynamic content for subsequent requests.
-
Using JDBC
-
Using BlazeDS
-
Using FA Bridge
-
Directly calling the Java class
B
Correct answer
Explanation
BlazeDS is an open-source, server-based Java remoting and web messaging technology that allows Adobe Flex applications to easily communicate with back-end Java objects and services.
C
Correct answer
Explanation
Classic ASP has six server objects: Application, ASPError, Request, Response, Server, and Session. These objects provide essential functionality for building dynamic web pages, with each serving a specific purpose like managing state, handling errors, or processing client requests.
-
Application
-
Session
-
Cookie
-
Content
A
Correct answer
Explanation
The Application object is used to store data that should be accessible to all users across all sessions, making it ideal for shared login data. Session objects are user-specific, cookies are stored client-side, and Content is not an ASP server object.
-
Respones.expires=100
-
Respones.Buffer=true
-
Respones.Buffer=false
-
Respones.Buffer=-1
C
Correct answer
Explanation
Setting Response.Buffer to false disables page buffering, allowing content to be sent to the client immediately as it's generated rather than waiting for the entire page to complete. The Expires property controls caching, not buffering behavior.
-
Web Rendering Engine
-
Application Framework
-
Client Engine
-
Server Engine
A
Correct answer
Explanation
The Web Application Container in Echo2 framework is an extension of the Web Rendering Engine. This engine handles the rendering and lifecycle of web components in the Echo2 architecture.
-
Generic Servlet is an Abstract Class and it extends Servlet Config Class
-
HttpServlet is an Abstract class extending Generic Servlet Abstract Class.
-
HttpServlet is an Abstract Class that extends Servlet Interface.
-
Generic Servlet is an Abstract Class and it extends Servlet Config Interface
C
Correct answer
Explanation
SAAJ (SOAP with Attachments API for Java) is specifically designed for sending XML documents and attachments over the Internet using SOAP protocol. JAXB is for XML binding to Java objects, JAXR for registry access, and JAX-RPC for remote procedure calls via SOAP.
B
Correct answer
Explanation
SOA (Service-Oriented Architecture) is an architectural design pattern that can be implemented using various technologies including web services, CORBA, REST APIs, message queues, or other distributed computing approaches. Web services are one popular implementation but not the only way.
-
Simple Access API for Java
-
SOAP with Attachments API for Java
-
Serial Access API for Java
-
Sun Access API for Java
B
Correct answer
Explanation
SAAJ stands for SOAP with Attachments API for Java. It's a Java API for creating and sending SOAP messages with attachments. The other options are fabricated: Simple Access, Serial Access, and Sun Access are not real Java API names.
A
Correct answer
Explanation
AJP (Apache JServ Protocol) is the wire protocol enabling communication between Apache web server and Tomcat. HTTP is for web communication, FTP for file transfer, and AJAX for asynchronous web updates.
-
Servlet Container
-
EJB Server
-
J2EE Server
-
Nothing
A
Correct answer
Explanation
Tomcat is primarily a Servlet Container and JSP engine. It is not a full EJB server (which requires Java EE application server like JBoss), not a complete J2EE server, and certainly not 'nothing'.