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
-
RMI
-
JNDI
-
JINI
-
LDAP
-
None of these
B
Correct answer
Explanation
It is an application programming interface.
-
Only (i)
-
Only (ii)
-
Only (iii)
-
Only (iv)
-
None of these
D
Correct answer
Explanation
The functionality of DCOM and EJB is the same.
-
Throwaway prototype
-
Evolutionary prototype
-
Breadboard prototyping
-
Incremental prototyping
-
Extreme prototyping
E
Correct answer
Explanation
Extreme Prototyping as a development process is used especially for developing web applications. Basically, it breaks down web development into three phases, each one based on the preceding one. The first phase is a static prototype that consists mainly of HTML pages. In the second phase, the screens are programmed and fully functional using a simulated services layer. In the third phase, the services are implemented. The process is called Extreme Prototyping to draw attention to the second phase of the process, where a fully functional UI is developed with very little regard to the services other than their contract.
-
Session method
-
Cookies method
-
Forms
-
Request.ServerVariables(HTTP_User-Agent)
-
Response.Redirect(anothrURL: string)
A
Correct answer
Explanation
Session method is suitable for sites with a limited number of visitors.
-
Application method
-
Cookies method
-
Request.Form(fieldname: string)
-
abs(n:number)
-
Request.ServerVriables(REMOTE_HOST)
A
Correct answer
Explanation
To allow sharing of information between visitors, application method is used.
-
URI (Uniform Resource Identifier)
-
Entitiy body
-
Request headers
-
Response headers
-
None of the above
D
Correct answer
Explanation
This component is not present in the HTTP request.
-
Post
-
Get
-
Put
-
Head
-
None of the above
C
Correct answer
Explanation
This method stores the entity body at the location specified by the URI.
-
HttpServletRequest
-
HttpServletResponse
-
Object
-
PageContext
-
None of the above
E
Correct answer
Explanation
ServletContext API is used for application implicit object.
-
extends
-
autoFlush
-
isELIgnored
-
import
-
all of the above
E
Correct answer
Explanation
All are the JSP page directives.
-
getInitParameter()
-
getInitParameterNames()
-
object getAttribute()
-
removeAttribute()
-
none of the above
E
Correct answer
Explanation
All are the method ServletContext interface.
-
ASP.NET
-
Applet
-
Android
-
Servlet
-
Semantic Web
A
Correct answer
Explanation
ASP.NET is a server-side Web application framework designed for Web development to produce dynamic Web pages
-
Servlets
-
JavaServer Pages (JSP)
-
JavaBeans
-
None of these
B
Correct answer
Explanation
This application of Java consists of text files that combine standard HTML and new scripting tags.
-
Servlet request
-
Http servlet request
-
Servlet response
-
Http servlet response
-
is an interpreted program that runs on the client
-
tracks the number of visitors to a website
-
is a compiled program that usually runs on the client
-
collects data from visitors to a website
-
none of these
C
Correct answer
Explanation
An applet is a small application compiled to bytecode that runs on the client side, typically within a browser or JVM. While applets are interpreted at runtime, they are first compiled to bytecode before distribution. Visitor tracking and data collection are web server functions, not applet characteristics. The key distinction is that applets are pre-compiled programs delivered to clients.
-
CGI
-
ASP
-
JSP
-
HTML
-
All of the above
D
Correct answer
Explanation
HTML is the language used to write the web page. It is not active afterwards.