Answer Posted / rv.nandakishore
Think, if there is 100's of objects are utilizing the
resource(i.e Connection object). That means allocation of
those objects are stored in the internal memory of the JVM
right... If similar requests are utilizing the Connection
object.... at one time the JVM utilization memory is full...
this will degrade the application. For this reason we call
explicitly destroy()...... if not the Garbage Collector will
taken care to reclaim the memory.... by we don's say when it
will be reclaim the memory and free the JVM memory......
| Is This Answer Correct ? | 20 Yes | 0 No |
Post New Answer View All Answers
Write a servlet to upload file on server.
What is a server side include (ssi)
When servlet object is created?
What is the GenericServlet class?
What are different methods of session management in servlets?
How httpservlet is different from the genericservlet?
Explain is servlet mapping?
What are all the protocols supported by httpservlet?
How can the session in servlet can be destroyed?
Once the destroy() method is called by the container, will the servlet be immediately destroyed? What happens to the tasks(threads) that the servlet might be executing at that time?
What is meant by servlet? What are the parameters of the service method?
What is Request Dispatcher?
What do you mean by scope object and what are its types?
What are the supporting protocol by HttpServlet ?
Why servlet is faster than jsp?