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
-
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.
-
pub.flow:catchException
-
pub.flow:catchError
-
pub.schema:validatePipeline
-
pub.flow:getLastError
D
Correct answer
Explanation
pub.flow:getLastError retrieves details about the last exception that occurred during flow service execution, making it the primary exception handling service. pub.flow:catchException handles exceptions but getLastError provides exception details.
-
Change the content type of the output returned to the client of a service invoke
-
Return an XML message in response to an XML HTTP POST request
-
Display an HTML message in a browser
-
Return a text document that has been previously formatted with an output template
D
Correct answer
Explanation
The pub.flow:setResponse service in webMethods can change content types, return XML/HTML messages, and display content in browsers. However, returning a pre-formatted text document from an output template is not within its scope - setResponse handles response configuration but doesn't retrieve template-formatted documents.
-
Control access to a Flow service
-
Store encrypted Access Control Lists (ACLs)
-
Restrict access to DSP, HTML and XML files
-
Control Administrator access to the Integration Server
C
Correct answer
Explanation
The .access file in webMethods Integration Server controls access to web-facing resources like DSP (webMethods DSP pages), HTML files, and XML files. It does NOT control Flow service access (handled by ACLs), store encrypted ACLs, or control Administrator access.
-
An IData pipeline object is instantiated
-
A content-handler is invoked
-
A session is created
-
The client posting the data is authenticated
D
Correct answer
Explanation
When HTTP POST data arrives at webMethods Integration Server, authentication (if configured) typically happens first to establish who is making the request. Only after authentication does the server create a session, invoke content handlers, or instantiate pipeline objects.
-
Web Client
-
Mobile Web Client
-
Wireless Web Client
-
Dedicated Web Client
A,C
Correct answer
Explanation
Siebel Web Clients and Wireless Web Clients connect to the Siebel Application Object Manager via a web server (using the Siebel Web Server Extension). Dedicated Web Clients connect directly to the database.
-
JSP File
-
Plain text file
-
SERVLET
-
All of the above
D
Correct answer
Explanation
The action is versatile and can include output from various sources: JSP files (for dynamic content generation), plain text or HTML files (for static content), and servlets (for programmatic output). This makes it a powerful tool for composing pages from multiple components.