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
-
Jar files
-
War files
-
Ear files
-
Both (2) and (3)
-
None of the above
B
Correct answer
Explanation
These files are created during web application deployment and these have .jsp and .js files.
-
Applet executes on browser.
-
Servlet has no graphical user interface.
-
Servlets can be used in web as well as desktop applications.
-
All of the above
-
Both (1) and (2)
E
Correct answer
Explanation
These are the true statements.
-
Request.ServerVariables(SERVER_NAME)
-
Request.Form(fieldname: string)
-
Response.redirect(anothrURL: string)
-
Request.ServerVariables(REMOTE_HOST)
-
Response Object
D
Correct answer
Explanation
It returns the client's domain name as a string.
-
Cookies Method
-
Form
-
Applcation Method
-
Len
-
Session
A
Correct answer
Explanation
Here, the information is saved in the client's computer and not in the server.
-
Request.SeverVariables(SERVER_NAME)
-
Request.ServerVariable(REMOTE_ADDR)
-
Request.Form(fieldname: string)
-
Form object
-
Response object
B
Correct answer
Explanation
It returns the client's IP address as a string.
-
Request.Form(fieldname: string)
-
Request.ServerVariables(SERVER_NAME)
-
Right(thestring: string, n:number)
-
Response object
-
Request.ServerVariables(HTTP_User-Agent)
E
Correct answer
Explanation
It returns the client browser type as a string.
-
EJB
-
Java Beans
-
HTML
-
JSPs
-
None of these
D
Correct answer
Explanation
MVC (Model View Controller) is a pattern for designing software. In the pattern, we separate out the various responsibilities to well defined sets of classes. In the MCV architecture , 'view' components are basically JSPs.
-
JINI
-
JDO
-
JAXB
-
RMI
-
None of these
D
Correct answer
Explanation
Stub is a member of Remote Method Invocation (RMI) technology.
-
Whole bean is loaded late.
-
Container loads every bean at start.
-
Only starts loading on first call of getter methods.
-
Only 2 and 3.
-
None of these
A
Correct answer
Explanation
'Whole bean is loaded late' best defines lazy loading of beans.
-
Only (i) and (ii)
-
Only (i)
-
Only (ii)
-
Only (iii)
-
None of these
B
Correct answer
Explanation
Actually EJB technology uses Java Remote Method Invocation for communication between an enterprise bean and a client.
-
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.