MCQ Tutorial - JAVA->SERVLET | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"><ins class="adsbygoogle" style="display:block" data-ad-client="ca-pub-9102696368566174" data-ad-slot="6937758887" data-ad-format="auto" data-full-width-responsive="true"></ins><script>(adsbygoogle = window.adsbygoogle || []).push({}); | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"><ins class="adsbygoogle" style="display:block" data-ad-client="ca-pub-9102696368566174" data-ad-slot="6937758887" data-ad-format="auto" data-full-width-responsive="true"></ins><script>(adsbygoogle = window.adsbygoogle || []).push({}); &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"><ins class="adsbygoogle" style="display:block" data-ad-client="ca-pub-9102696368566174" data-ad-slot="6937758887" data-ad-format="auto" data-full-width-responsive="true"></ins><script>(adsbygoogle = window.adsbygoogle || []).push({}); | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Getparameter() is the method of mcq
getParameter(java.lang.String name) Returns the value of a request parameter as a String , or null if the parameter does not exist.
The doGet() method in servlets is used to process the HTTP GET requests. So, basically, the HTTP GET method should be used to get the data from the server to the browser. Although in some requests, the GET method is used to send data from the browser to the server also.
Q 6 - Which of the following is true about init method of servlet? A - The init method simply creates or loads some data that will be used throughout the life of the servlet.
It is used to check if jsp tag library is enabled or not.