How many interface in servlet




















Also it provides 2 non-life-cycle methods. The Servlet container calls the init method only once post instantiating the Servlet. This is life-cycle method of Servlet. The protocol of this class is independent as it can handle any type of request.

Learn CSS. Learn JavaScript. C Language C Tutorial. C Compiler. Standard Template Library. Python Python Tutorial. Python Programs. Python How Tos. Numpy Module. Matplotlib Module. Tkinter Module. Network Programming with Python. Learn Web Scraping. More in Python Python Compiler. Java Core Java Tutorial. Java Type Conversion Examples. Java Wrapper Class. Java 8. Java Next Topic Servlet Interface.

Reinforcement Learning. R Programming. React Native. Python Design Patterns. Python Pillow. Python Turtle. Verbal Ability. Interview Questions. Company Questions. Artificial Intelligence. Returns- the ServletConfig object. It returns information about the servlet like version, author, etc. This method returns a string that should be in the form of plain text and not any kind of mark-up. Returns — a string that contains the knowledge about the servlet.

This method is named once we got to close the servlet. The servlet container calls the destroy method before removing a servlet instance from the service. Once the servlet container calls the destroy method, no service methods will then be called. That is after the exit of all the threads running within the servlet, the destroy method is named. Hence, the servlet gets an opportunity to wash up all the resources like memory, threads, etc.

In the next article, I am going to discuss the Generic Servlet class in detail.



0コメント

  • 1000 / 1000