|
IT Placement Papers
3i-Infotech Placement Papers
Accenture Placement Papers
Infosys Placement Papers
Adobe Placement Papers
.........More
Technical Interview Questions
Networking Interview Questions
C Interview
Questions
.........More
Resume Guide for Jobseekers
Resume - Action words
Resume To-Do List
.........More
Soft Skills
Communication Skills
Leadership Skills
.........More
|
|
Computer Associates Placement Papers
15. Difference between <jsp:forward> and <jsp:include> tags
ANS:
<jsp:forward> transfers the control to the mentioned destination page.
<jsp:include> tag substitutes the output of the destination page. Control
remains on the same page.
16. Which of the following is true ?
(a) Unlimited data transfer can be done using POST method
(b) Data is visible in Browser URL when using POST method
(c) When large amounts of data transfer is to be done, GET method is used.
ANS: (a)
17. EJB class should implement
(a) javax.ejb.EntityBean
(b) javax.ejb.rmi
(c) javax.ejb.EJBHome
(d) javax.ejb.EJBObject
ANS: I think the answer is (a)
18. Generally Servlets are used for complete HTML generation. If you want to
generate partial HTMLs that include some static text (This should not be hard
coded in Servlets) as well as some dynamic text, what method do you use ?
(a) Serverside includes
(b) JSP code in HTML
(c) Not possible to generate incomplete HTMLs using Servlets
(Note: I don't remember the question word to word. But it is similar to what I
have given)
19. Which of the following can not be used as the scope when using a JavaBean
with JSP?
(a) session
(b) application
(c) request
(d) response
ANS: (d)
20. Which is true about Servlets
(a) Only one instance of Servlet is created in memory
(b) Multi-Threading is used to service multiple requests
(c) Both (a) & (b)
ANS: I think the answer is (c)
21. What is Temporary Servlet ?
(a) Servlet that is destroyed at run time
(b) Servlet that exists for a session
(c) Servlet that is started and stopped for each request
ANS: (c)
EXPLANATION:
A temporary servlet is started when a request arrives and shut down after the
response is generated.
A permanent servlet is loaded when the server is started and lives until the
server is shut down.
* This is useful when startup costs are high, such as a servlet that establishes
a connection to a database.
* Also useful for permanent server-side service, such as an RMI server.
* Provides faster response to client requests when this is crucial.
Being temporary or permanent is part of the server configuration.
22. Although it is not commonly done, what will you do if you want to have
multiple instances of Servlet in memory and if they have to share the execution
of a user request ?
(a) Defnie Single Thread model
(b) Cannot be done
(Note: I don't remember the question & answers word to word. But it is similar
to what I have given)
23. In WebLogic 5.1, how can you make a JSP application work
(a) By changing the root directory
(b) By creating a vitual directory in Server console
(c) By creating a vitual directory in client console
JAVA PAPER:
I don't remember Java questions because most of them are programs and the
outputs are asked.
I should say question are very difficult and confusing when compared to J2EE
questions.
You should be thorough with following topics, as most of the questions &
programs are from these.
* Threads, Synchronization, Thread Monitors
* AWT & SWING Layouts (Border Layout)
* Try, Catch, Finally
* Switch statements (Some question on "default" option of Switch)
* Java Exceptions
* Scope (Public, Private, protected)
* Inner & Outer classes
* Strings & StringBuffers
* Serialization
* Applets
* Abstract Classes & Interfaces
* Static classes & methods
Page No :
1
2 3
Check
Aptitude Interview Questions
for more Aptitude Questions
Check
Placement Papers for more IT
Companies Paper
|