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                                                                          ...

public service method

Question : What is written inside the public service method?
Ans : The public service method converts the ServletRequest object into the HttpServletRequest type and ServletResponse object into the HttpServletResponse type. Then, calls the service method passing these objects. Let's see the internal code:


1.     public void service(ServletRequest req, ServletResponse res)  
2.             throws ServletException, IOException  
3.         {  
4.             HttpServletRequest request;  
5.             HttpServletResponse response;  
6.             try  
7.             {  
8.                 request = (HttpServletRequest)req;  
9.                 response = (HttpServletResponse)res;  
10.           }  
11.           catch(ClassCastException e)  
12.           {  
13.               throw new ServletException("non-HTTP request or response");  
14.           }  
15.           service(request, response);  
16.       }  


If you want to donate money if this information is useful to 
you :

                       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