In the starting of Program we need to import all the Required Packages from the java library.then to declare a class named 'JavaServletLIMITQuery' which is been extends 'HttpServlet'. after then we have to use serviceMethod() which is responsible for the Getting request for Output. then load drivers and create an Object of resultSet which will useful to show the table result as an Output.Connection variable also to be declared for interact between database and actual code as like in between frontEnd and backEnd.now on other hand preparedStatement will be use for executing query like executeQuery() like this (SELECT last_name, salary FROM inq LIMIT 2). and to fetch the result on web browser doGet() method will be initialize.

Now to getting Output in designer Look we need to use 'HTML' tags to put all the Output in Tabular form on a web Browser.