Prepare
Practice
Interview
Aptitude
Reasoning
English
GD
Placement papers
HR
Current affairs
Engineering
MCA
MBA
Online test
Login
Online Practice Test
>
Servlets
« Previous
Next »
What is the limit of data to be passed from HTML when doGet() method is used?
Options
- 4K
- 8K
- 2K
- 1K
CORRECT ANSWER : 2K
Discussion Board
doGet()
The limit of data is 2k that needs to be passed from HTML when doGet() method is used. It uses the abstract class javax.servlet.Servlet to design the structure an entire web server around the servlet. Classes needs to be extended from one class to another and it gets extended by the subclass i.e. HttpServlet, in the package javax.servlet.http. This class calls the method:
public void service(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException;
The parameters used in this is having two argument namely: request and response. Where the request contains all the information about the request from the browser, including its input stream should you need to read data and the response argument contains information to get the response back to the browser, including the output stream to write your response back to the user.
Rohit Sharma 11-27-2014 03:38 PM
« Previous
Next »
Write your comments
*
*
Email must be in the form someone@domain.com
*
*
Enter the code shown above:
Please enter the code shown above
(Note: If you cannot read the numbers in the above image, reload the page to generate a new one.)
Related Content
Java Beginner (11)
Java (39)
Java (40)
Java (22)
Java (30)
Java (25)
Java (20)
Java (20)
Core Java (20)
Core Java (10)
Core Java (72)
EJB (20)
JDBC (20)
Applet (20)
Struts (21)
Servlets (20)
Java Web Services (20)
Javascript (40)
J2EE (10)
jQuery (46)
Advertisement
▲