1600 PMP mock questions 1400 CAPM mock questions 800 SCJP 6 mock questions 600 OCAJP 7 mock questions 590 OCPJP 7 mock questions 556 SCWCD 5 mock questions 500 OCEJWCD 6 mock questions pdfDownload (java,struts, hibernet etc)
Java online test
JSP online test
ORACLE online test
Hibernate online test
Servlet online test
Struts online test
EJB online test
C online test
C++ online test
Aptitude online test
Freshers/Beginners Interview Questions and Answers

(1)  Q.What is the difference between the getRequestDispatcher(String path) method of ServletRequest interface and ServletContext interface?


(2)  Q: What is the difference between HttpServlet and GenericServlet?


(3)  Q. What is the difference between ServletContext and ServletConfig?


(4)  Q: What is the difference between Difference between doGet() and doPost()?


(5)  Q. What is the difference between the getRequestDispatcher(String) and getNamedDispatcher(String) methods in the ServletContext Class?


(6)  What is load-on-startup in servlet ?


(7)  Q.What are the common mechanisms used for session tracking?


(8)  Q.Explain the directory structure of a web application


(9)  Q.Explain the life cycle methods of a Servlet.


(10)  Q.Why do servlets have an init method? Can't we make use of the servlet constructor for initialization?


(11)  Q.Why can't a container call constructor having parameters?


(12)  Q.What happens if i call destroy() from init()?


(13)  Q.How can I use servlets with protocols other than HTTP, e.g. FTP?


(14)  Q.How do I implement security for my web application ?


(15)  Q.What's the difference between response.sendRedirect() and requestDispatcher.forward() ?


(16)  Q.How do I upload a file in a servlet app?


(17)  Why IllegalStateException in jsp/servet?


(18)  Q.What is servlet container?


(19)  Q.When a client request is sent to the servlet container, how does the container choose which servlet to invoke?


(20)  Q.Given the request path below, which are context path, servlet path and path info? /bookstore/education/index.html


(21)  What is new in ServletRequest interface ?


(22)  Q.Request parameter How to find whether a parameter exists in the request object?


(23)  Q.Once the destroy() method is called by the container, will the servlet be immediately destroyed? What happens to the tasks(threads) that the servlet might be executing at that time?


(24)  Q.Why is it that we can't give relative URL's when using ServletContext.getRequestDispatcher() when we can use the same while calling ServletRequest.getRequestDispatcher()?


(25)  Q.When we don't write any constructor for the servlet, how does container create an instance of servlet?


(26)  Q.Why don't we write a constructor in a servlet?


(27)  Q.Explain the life cycle of Servlet?


(28)  Q.Can we use the constructor, instead of init(), to initialize servlet?


(29)  Q.Difference forward() and response.sendRedirect() .


(30)  Q.What is the difference in using request.getRequestDispatcher() and context.getRequestDispatcher()?


(31)  Q.What is the difference between ServletContext and PageContext?


(32)  What's the difference between init() & init(ServletConfig) in genericServlet ?


(33)  Q.How to upload an File/image from servlet/jsp into server from clients machine?


(34)  Q.What is the difference between init() and init(ServletConfig) ?


(35)  Q. Can we override service method in HttpServlet ?


(36)  Q.What is the difference between the getRequestDispatcher(String path) method of ServletRequest interface and ServletContext interface?


(37)  Q: What is the difference between HttpServlet and GenericServlet?


(38)  Q. What is the difference between ServletContext and ServletConfig?


(39)  Q: What is the difference between Difference between doGet() and doPost()?


(40)  Q. What is the difference between the getRequestDispatcher(String) and getNamedDispatcher(String) methods in the ServletContext Class?


(41)  What is load-on-startup in servlet ?


(42)  Q.What are the common mechanisms used for session tracking?


(43)  Q.Explain the directory structure of a web application


(44)  Q.Explain the life cycle methods of a Servlet.


(45)  Q.Why do servlets have an init method? Can't we make use of the servlet constructor for initialization?


(46)  Q.Why can't a container call constructor having parameters?


(47)  Q.What happens if i call destroy() from init()?


(48)  Q.How can I use servlets with protocols other than HTTP, e.g. FTP?


(49)  Q.How do I implement security for my web application ?


(50)  Q.What's the difference between response.sendRedirect() and requestDispatcher.forward() ?


(51)  Q.How do I upload a file in a servlet app?


(52)  Why IllegalStateException in jsp/servet?


(53)  Q.What is servlet container?


(54)  Q.When a client request is sent to the servlet container, how does the container choose which servlet to invoke?


(55)  Q.Given the request path below, which are context path, servlet path and path info? /bookstore/education/index.html


(56)  What is new in ServletRequest interface ?


(57)  Q.Request parameter How to find whether a parameter exists in the request object?


(58)  Q.Once the destroy() method is called by the container, will the servlet be immediately destroyed? What happens to the tasks(threads) that the servlet might be executing at that time?


(59)  Q.Why is it that we can't give relative URL's when using ServletContext.getRequestDispatcher() when we can use the same while calling ServletRequest.getRequestDispatcher()?


(60)  Q.When we don't write any constructor for the servlet, how does container create an instance of servlet?


(61)  Q.Why don't we write a constructor in a servlet?


(62)  Q.Explain the life cycle of Servlet?


(63)  Q.Can we use the constructor, instead of init(), to initialize servlet?


(64)  Q.Difference forward() and response.sendRedirect() .


(65)  Q.What is the difference in using request.getRequestDispatcher() and context.getRequestDispatcher()?


(66)  Q.What is the difference between ServletContext and PageContext?


(67)  What's the difference between init() & init(ServletConfig) in genericServlet ?


(68)  Q.How to upload an File/image from servlet/jsp into server from clients machine?


(69)  Q.What is the difference between init() and init(ServletConfig) ?


(70)  Q. Can we override service method in HttpServlet ?


(71)  Q.What is the difference between the getRequestDispatcher(String path) method of ServletRequest interface and ServletContext interface?


(72)  Q: What is the difference between HttpServlet and GenericServlet?


(73)  Q. What is the difference between ServletContext and ServletConfig?


(74)  Q: What is the difference between Difference between doGet() and doPost()?


(75)  Q. What is the difference between the getRequestDispatcher(String) and getNamedDispatcher(String) methods in the ServletContext Class?


(76)  What is load-on-startup in servlet ?


(77)  Q.What are the common mechanisms used for session tracking?


(78)  Q.Explain the directory structure of a web application


(79)  Q.Explain the life cycle methods of a Servlet.


(80)  Q.Why do servlets have an init method? Can't we make use of the servlet constructor for initialization?


(81)  Q.Why can't a container call constructor having parameters?


(82)  Q.What happens if i call destroy() from init()?


(83)  Q.How can I use servlets with protocols other than HTTP, e.g. FTP?


(84)  Q.How do I implement security for my web application ?


(85)  Q.What's the difference between response.sendRedirect() and requestDispatcher.forward() ?


(86)  Q.How do I upload a file in a servlet app?


(87)  Why IllegalStateException in jsp/servet?


(88)  Q.What is servlet container?


(89)  Q.When a client request is sent to the servlet container, how does the container choose which servlet to invoke?


(90)  Q.Given the request path below, which are context path, servlet path and path info? /bookstore/education/index.html


(91)  What is new in ServletRequest interface ?


(92)  Q.Request parameter How to find whether a parameter exists in the request object?


(93)  Q.Once the destroy() method is called by the container, will the servlet be immediately destroyed? What happens to the tasks(threads) that the servlet might be executing at that time?


(94)  Q.Why is it that we can't give relative URL's when using ServletContext.getRequestDispatcher() when we can use the same while calling ServletRequest.getRequestDispatcher()?


(95)  Q.When we don't write any constructor for the servlet, how does container create an instance of servlet?


(96)  Q.Why don't we write a constructor in a servlet?


(97)  Q.Explain the life cycle of Servlet?


(98)  Q.Can we use the constructor, instead of init(), to initialize servlet?


(99)  Q.Difference forward() and response.sendRedirect() .


(100)  Q.What is the difference in using request.getRequestDispatcher() and context.getRequestDispatcher()?


(101)  Q.What is the difference between ServletContext and PageContext?


(102)  What's the difference between init() & init(ServletConfig) in genericServlet ?


(103)  Q.How to upload an File/image from servlet/jsp into server from clients machine?


(104)  Q.What is the difference between init() and init(ServletConfig) ?


(105)  Q. Can we override service method in HttpServlet ?



The information you are posting should be related to java and ORACLE technology. Not political.