Computer Knowledge
Java Enterprise and Web Technologies
2,183 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
-
Web-browsers only
-
Multi-threaded Java clients only
-
FTP clients only
-
COM+ Clients only
-
Application Server
-
Web Server
-
Database Server
-
Messaging Server
B
Correct answer
Explanation
Apache is a web server software that serves web content over HTTP/HTTPS. It's the most widely used web server software, not an application server, database server, or messaging server.
-
Starts Apache in verbose mode with maximum logging.
-
Has no impact on Apache and has been discontinued as of Apache 1.2.6.
-
Displays the version of Apache and the build date and exits.
-
Disables virtual hosting for the specified virtual host name.
C
Correct answer
Explanation
In Apache HTTP Server, running the executable with the -v option prints the version of the Apache server and its build date, and then immediately exits without starting the daemon.
-
null
-
Primary Key class
-
Home Object
-
Remote Object
A
Correct answer
Explanation
For CMP (Container-Managed Persistence) entity beans, the container handles primary key generation, so ejbCreate() returns null. In BMP (Bean-Managed Persistence), ejbCreate() returns the primary key.
-
The Session is not valid in the new Window
-
The Session is valid in the new Window
-
The Scope is not valid in the new Window
-
The Scope is valid in the new Window
B
Correct answer
Explanation
When a new window is opened from an existing page via a link or script, the browser sends the same session cookie (JSESSIONID) in the request headers. Thus, the session remains valid and shared in the new window.
-
getServletInfo()
-
getInitParameters()
-
getServletConfig()
-
None of the above
C
Correct answer
Explanation
The getServletConfig() method is inherited from GenericServlet and returns the ServletConfig object passed to the init method, allowing access to initialization parameters and the servlet context.
-
Internet explorer
-
Safari
-
Firefox
-
Netscape navigator
D
Correct answer
Explanation
Netscape Navigator was the first browser to incorporate Java technology in 1995, through the Java applet API. Internet Explorer, Safari, and Firefox came later. This partnership between Sun and Netscape was crucial for Java's early adoption on the web.
B
Correct answer
Explanation
'javac' is the Java COMPILER, not the loader. It compiles .java source files into .class bytecode files. The Java loader is part of the JVM (Java Virtual Machine), which loads and executes the bytecode. Therefore the statement is False.
A
Correct answer
Explanation
javadoc is the standard documentation tool included in the JDK from Sun Microsystems (now Oracle). It generates HTML API documentation from specially formatted comments in Java source code.
A
Correct answer
Explanation
The JVM is the runtime engine that executes Java bytecode and is part of the JRE. Each running Java application creates its own JVM instance from the JRE installation.
A
Correct answer
Explanation
HTTP GET method appends name/value pairs to the URL in the query string (visible in browser address bar), while POST sends them in the message body. SUBMIT is not a valid HTTP method.
-
Users and Software should be granted the fewest privledges necessary to perform their tasks
-
System access should be permitted only where explicitly granted; the default should be to deny access
-
The system configuration should be as simple as possible
-
System access should be restricted only where explicitly necessary; the default should be to grant access to everything
D
Correct answer
Explanation
Security best practices follow the principle of least privilege (fewest access rights necessary) and default deny. Option D describes the opposite approach (default grant access), which violates security principles.
-
Expose an Integration Server service as a Web Service
-
Chain 2 Web Services together
-
Invoke a Web Service on a different web server
-
Invoke an Integration Server service on a remote server
C
Correct answer
Explanation
A Web Service Connector is used to invoke/consume a web service hosted on a different server. It acts as a client to external web services. To expose an Integration Server service as a web service, you would use a Web Service Provider instead.
-
webMethods6\Servers\Broker\data\brokerservers\default
-
webMethods6\Broker\data\awbrokers60\default
-
webMethods6\Servers\data\awbrokers60\default
-
webMethods6\BrokerServer\data\awbrokers60\default
B
Correct answer
Explanation
This is a webMethods-specific file system path question. The correct path depends on the product version and installation configuration. Option B represents one such valid path structure.
-
The JVM specified by the system CLASSPATH
-
The JVM downloaded from the Integration Server
-
The JVM bundled with the Developer
-
The JVM selected during product installation
C
Correct answer
Explanation
webMethods Developer ships with a bundled JVM and uses it by default to ensure consistent behavior. This bundled JVM is included with the product installation.