Question Bank Advance Java-2023
Question Bank Advance Java-2023
Unit-1: JDBC
1. What is JDBC API ? When do we use it?
2. Explain the Classes & Interfaces in JDBC.
3. What are the steps to write a JDBC application?
4. What are the components of JDBC?
5. What are the methods of 'Statement' interface used to fire SQL query?
6. What are the types of JDBC drivers ? Explain in detail.
7. Discuss the architecture of JDBC in detail.
8. What is the difference between execute, executeQuery, executeUpdate?
9. What are the benefits of PreparedStatement over Statement?
10. State the benefits of Callable Statement over Prepared Statement.
11. State the difference between Statement Vs PreparedStatement, ResultSet Vs Updatable
ResultSet.
12. What is JDBC ResultSet?
13. What is ResultSetMetaData?
14. What are different types of ResultSet?
15. State the methods of Transaction Management in JDBC
16. How to establish a Database connection between java application and Database?
17. What is meant by ResultSet object and How to Fetch the Data from Database.
18. What is the difference between ScrollSensitive ResultSet and ScrollInsensitive Result
Sets?
19. What is meant by Transaction? How it is possible to maintain Transactions in JDBC
applications.
20. What is meant by SavePoint? How to use Savepoints in JDBC applications?
Unit-3: Servlets
1. What is servlet? Explain how servlet works
2. Explain the Life Cycle of Servlet.
3. State HTTP request & HTTP response.
4. Differentiate between doGet() & doPost() method in Servlet.
5. What is deployment descriptor? State its purpose in detail.
6. Describe HTTP request & response structure in detail.
7. Explain the hierarchy structure of Servlet API.
8. What are the attributes of Servlets?
9. State the difference between request, session and application scope in servlet.
10. State the difference between Generic Servlet and HTTP Servlet.
11. What are the difference between ServletContext and ServletConfig?
12. What is the use of Request Dispatcher? Explain its methods with suitable example.
13. What are cookies? How to create and use cookies in java servlets.
14. What is Filter API? State the purpose of Filters in servlets.
15. How Filter works for preprocessing of request and response in servlet?
Prof Krishna Kant Page 2
Charotar University of Science and Technology (CHARUSAT)
Faculty of Computer Science and Applications
Smt.Chandaben Mohanbhai Patel Institute of Computer Applications
CA 863 - Enterprise Computing Using Java EE
MCA Semester: I
Question Bank-2023
Unit-4: JSP
1. What is JSP? Explain JSP elements with example.
2. What are the advantages of JSP over Servlets?
3. Explain JSP Architecture in detail.
4. How JSP Page is created?
5. How is JSP used in the MVC model?
6. What are JSP directives?
7. What are the advantages of JSP over Servlet?
8. Explain life cycle methods of JSP.
9. State the event sequence of JSP Page Life Cycle.
10. How can I override the jspInit() and jspDestroy() methods within a JSP page?
11. What are the different scopes available for JSPs ?
12. Differences between static include directive and include action?
13. What are various attributes of Page Directive?
14. State all the nine JSP implicit Objects.
15. State and explain the advantages of JSP?
16. What are the advantages of using JSP over Servlets?
17. Explain INCLUDE directive with all its attribute.
18. Describe the jsp: useBean tag with an example?
19. What are JSP Actions? Explain the error handling in JSP with example.
20. What are JSP Directives? Sate the purpose of directive in JSP.
21. Differentiate between include directive & include action.
22. Differentiate between include action & forward Action.
23. Explain scripting elements in JSP.
24. What are JSP custom Tag? State its advantages.
25. What are JSP Actions? Explain include and forward action in JSP.
26. Write the step to create the Custom Tag in JSP.
27. What is the use of Usage of jsp: useBean action tag in JSP?
28. Discuss session management using JSP with four techniques.
29. What are Expression Language? How it is used in JSP?
30. State page scope, request scope, session scope and application scope in JSP.
31. Write short note on:
a) <jsp:useBean> and its attributes
b) MVC design pattern in JSP
c) <jsp:include> and <jsp:forward>
d) JSP Expressions
e) Page directive