Skip to main content

Featured

Game Development Tutorials In Android

Game Development Tutorials In Android Hi Guys,                 We are shortly started Game Development Tutorials in Android Studio. So everyone supports me and share this blogs to your friends. Guys, At this time everyone is freely available to source code and we are provide a video for step by step game developments. you are learn free and feel free to support us. Guys, if you have any question to me, so feel free to comment us. I will try to answer all the question as long as possible.                                                     Thank's                                                                          ...

java servlet important questions for interviews

Question : Servlet class is loaded

Ans : The classloader is responsible to load the servlet class. The servlet class is loaded when the first request for the servlet is received by the web container.

Question : Servlet instance is created

Ans : The web container creates the instance of a servlet after loading the servlet class. The servlet instance is created only once in the servlet life cycle.

Question : init method is invoked

Ans : The web container calls the init method only once after creating the servlet instance. The init method is used to initialize the servlet. It is the life cycle method of the javax.servlet.Servlet interface. Syntax of the init method is given below:


1.     public void init(ServletConfig config) throws ServletException 

Question : service method is invoked

Ans : The web container calls the service method each time when request for the servlet is received. If servlet is not initialized, it follows the first three steps as described above then calls the service method. If servlet is initialized, it calls the service method. Notice that servlet is initialized only once. The syntax of the service method of the Servlet interface is given below:
1.     public void service(ServletRequest request, ServletResponse response)   
  throws ServletException, IOException  

If this information is important to you , and you want to , I will continue writing some more details of programming language, so click on the advertising, available on this page. This is motivate me for writing some more blogs.

Comments