Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 1
JDBC Interview questions
1. What is the drawback of core java.
2.what is the drawback of file handling. 3.what is JDBC. 4.What are the steps for jdbc. 5.what are the components used from java.sql package. 6.what is a driver 7.what is the difference between Driver(I) and Driver(C). 8.How many ways can we load and register a Driver? Explain. 9.What is a DriverManager. 10.What is a connection? How to establish a connection in jdbc? 11.How many types of getConnection() methods are present in JDBC? 12.Whta is the return type of getConnection() method? 13.What is a database url?Explain 14.What is a statement? 15.What are the types of Statements in jdbc? 16.What is the return type of createStatement() method? 17.What is the return type of prepareStatement() method? 18.What are the methods used to execute a statement? What are the returntypes? 19.Why is it necessary to close the connection?
SERVLET INTERVIEW QUESTIONS
1.What is an application>What are the different types of applications. 2.What is a standalone Application. 3.What is a web-based appplication? 4.What are the types of web based applications?EXplain. 5.Explain all the web architectures? 6.What is an API? 7.What is a server? 8.What are the different types of servers?Explain 9.What is an URL? 10.What are the components present in the url? 11.What is a servlet? 12.What is Servlet Interface? 13.What are the unimplemented methods in Servlet Interface?Explain. 14.What is Generic Servlet? 15.What are the steps to configure a static request. 16.What are the steps to configure a dynamic request. 17.What is the method used to receive the inputs from the view files? 18.What is the returntype of getParameter() method? 19.What are ServletRequest and ServletResponse? 20.What is PrintWriter? 21.How can we create an object of PrintWriter? 22.What is HTTPServlet? 23.What is the difference between GenericServlet and HTTPServlet? 24.What are the methods present in HTTPServlet? 25.What is JSP? 26.What is the difference between HTML and JSP? 27.What are the tags used in JSP?EXplain. 28.What is RequestDispatcher? 29.What is the method used to create an object of RequestDispatcher? 30.What are the methods in RequestDispatcher used to carry the data to next layer? 31.What is the use of sendRedirect() method. 32.Explain @WebServlet annotation. 33.Explain lifecycle of a Servlet with a diagram.