What is meant by Servelet? What are the parameters of service
method?
Answers were Sorted based on User's Feedback
Answer / madhu
servlet is a java program which provides implementation of sevlet interface which is in javax.servlet package directly or indirectly.
parameters of service is HttpServletRequest request,HttpServletResponnse respone.
request and response are objects of classes which provides the implementation of HttpServletRequest,HttpServletResponse.
| Is This Answer Correct ? | 3 Yes | 0 No |
Answer / aruna raman
A servlet is a Java programming language class used to
extend the capabilities of servers that host applications
accessed via a request-response programming model.
Although servlets can respond to any type of request, they
are commonly used to extend the applications hosted by Web
servers. For such applications, Java Servlet technology
defines HTTP-specific servlet classes.
init()
service()
getServletConfig()
getServletInfo()
destroy()
| Is This Answer Correct ? | 1 Yes | 0 No |
If two threads call a static method at the same point of time, what will happen?
Difference between object instantiation and construction ?
What do you mean by hashing?
If an object is garbage collected, can it become reachable again?
What is map java?
How would overload a function based on return type?
Why is sizeof not a function?
What is an error in java?
What is not thread safe?
How do you create a method in java?
Define linked list and its features with signature?
Can an interface be final?