SJM Vidyapeetha®
S. J. M INSTITUTE OF TECHNOLOGY
(Affiliated to Visvesvaraya Technological University, Belagavi, Recognized by AICTE,
New Delhi and Approved by Government of Karnataka)
P.B. No. 73, NH4 By-pass, Chitradurga -577 502, Karnataka State, India.
Department of Computer Science & Engineering
Course Title: Advanced Java Course Code : BCS613D
Semester : 6th Section: ‘A’ & ‘B’
Question Bank
Q.
No. QUESTIONS
Module-4
1 Define servlet? With neat sketches describe the life cycle of a servlet. What are the Applications
of Servlets in Web Programming?
2 What is cookie? Explain how to read cookies using a Java Servlet with an example program.
Write the difference between JSP and Servlet.
3 Explain How to read data from client in servlet with an example? Develop a Java Servlet that
accepts two integer input values (like value1 and value2) from a web page, calculates their sum,
and displays the result in the browser.
4 Demonstrate the steps involved in configuration of Tomcat web server. What are the
Advantages of Servlets over Traditional CGI?
5 Define JSP? Explain the three different types of JSP methods and List and explain the different
types of JSP tags with example.
6 a. Write a JSP program to add cookie name “User Id” and value”JB007”.
b. Write a JSP program to create a cookie named “EMPID” with the value “AN2536” and then
read and display the cookie value.
7 Write a JSP program to accept marks as input and display the grade based on the given grading
criteria. Marks above 90 → Grade A, between 80 and 89 → Grade B, between 70 and 79 → Grade
C, below 70 → Fail
Module-5
8 Define JDBC? Why JDBC is required and its advantages of JDBC. Briefly explain the JDBC
Architecture.
9 What is JDBC Driver? List and Explain the different types of JDBC Driver Types.
10 Describe the various steps of JDBC process with code snippet.
11 Briefly explain the prepared statement object. Write program to call a stored procedure
12 With proper syntax, explain three types of getConnection() methods.
13 With an example explain the following:
a. JDBC packages.
b. Statement Object
c. Result set.
14 Explain the Transaction processing with example.
Module-1
15 Illustrate the standards of Java Collections Framework.
16 Define the collection of interface in java? Explain the syntax of the Collection interface and
discuss the important methods available in it. Write a Java code to demonstrate the use of the
Collection interface by adding elements to a collection and displaying its size.
Page 1