What is meant by Servelet? What are the parameters of service
method?

Answers were Sorted based on User's Feedback



What is meant by Servelet? What are the parameters of service method?..

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

What is meant by Servelet? What are the parameters of service method?..

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

Post New Answer

More Core Java Interview Questions

Can set contain duplicates?

0 Answers  


Is there any difference between synchronized methods and synchronized statements?

0 Answers  


What is a default constructor and also define copy contrucyor?

0 Answers   Global Logic,


How does a try statement determine which catch clause should be used to handle an exception?

2 Answers  


7) Suppose there is Student class like class student { int age; string name; } We want to store these objects in a HashMap. Do we need to override any methods in Student class? If any which ones and why? what if i just override equals or just hashcode? what will be the results in both the cases?

4 Answers   CSC, Nagarro, RBS,






What is System class and its purpose?

2 Answers  


What are the four corner stones of oop?

0 Answers  


What is boolean query?

0 Answers  


What is the major drawback of internal iteration over external iteration?

0 Answers  


What is a return in java?

0 Answers  


How many types of equations are there?

0 Answers  


What is :: operator in java 8?

0 Answers  


Categories