Servlets Interview Questions
Questions Answers Views Company eMail

What are cookies and how will you use them?

3 5232

Why should we go for interservlet communication?

2 7945

Is it possible to call servlet with parameters in the URL?

4 13780

Can you send the mail from a servlet ,if yes tell how?

2 20383

What is the difference between servlet config and servlet context.

TCS, Tech Mahindra, Vertex,

19 54219

what is the difference between?when we write the code in following manner? class One extends httpservlet { } and class One extends genericservlet { }

4 6167

Hi guys.. Well can u tell me that why there is need of "init()" , i mean why can not we initialize the servlet object with the help of constructors? Thank you.

7 7440

we cant Override Jsp Service method?Why?

Infrasoft, Mind Tree,

4 37412

how can we create object to a class in a jsp file?

Accenture, L&T, TCS,

5 42133

i have class files in class folder. but i have no java files. but i want to modify the java files which are related to class files . how ?

TCS,

5 9239

when the jsp page is translated to servlet?

HCL,

5 13461

how the server will know its the same jsp page?

HCL,

3 6824

where the generated jsp source file are stored?

HCL,

7 11349

when you comppile the servlet is it neccesary to restaet the tomcat server?

HCL,

6 9437

how the jsp page can be regenerated?

HCL,

2 8335


Post New Servlets Questions

Un-Answered Questions { Servlets }

What is SingleThreadModel interface?

663


Who is responsible for writing a constructor?

769


In the servlets, we are having a web page that is invoking servlets ,username and password? which is checks in database? Suppose the second page also if we want to verify

582


What is load-on-startup in servlet?

578


Differentiate between get and post?

675






What are important features of Servlet 3?

583


Write a command to get actual path of a servlet to the server?

532


What is the effective way to make sure all the servlets are accessible only when user has a valid session?

559


Why is init() method is used in servlets?

550


What are the differences between servlet context vs servlet config?

573


What is the process to implement doget and dopost methods?

540


Which java application server is the best?

542


How many servlet objects are created?

559


Explain the methods of request dispatcher in servlet?

507


What is the life cycle of a servlet?

773