Bahubali College of Engineering, Shravanabelagola
Department of Information Science and Engineering
IV Sem, Advanced Java (BIS402)
Assignment 2
Q. No. Questions CO’s
1 Elaborate the concept of painting in Java Swing. Illustrate your explanation with a suitable CO3
example program.
2 Discuss the functionality of the four commonly used buttons in Java Swing. Illustrate each CO3
with a suitable example.
3 Explain the following swing components with an example program: i)JLabel ii)JTextField iii) CO3
JScrollPane iv) JTable and Describe the core interfaces that are provided by javax, servlet
and http package
4 Define the term Servlet. Explain the life cycle of a servlet. CO4
5 Write a Java Servlet program to accept 2 parameters from a webpage, find their sum, and CO4
display the result in the webpage. Also, give the necessary HTML script to create the webpage.
6 Explain JSP. List out types of JSP tags, variables and objects. Demonstrate the same with a CO4
program.
7 What are cookies? How are they handled in JSP? Write a JSP program to create and read a CO4
Cookie.
8 Develop a simple Java servlet that can handle HTTP requests and responses CO4
9 Elaborate on the concepts of JDBC and discuss the types of JDBC drivers. CO5
10 Explain the steps involved in associating the JDBC-ODBC bridge with a database using the CO5
ODBC Data Source Administrator
11 Discuss the following with respect to JDBC i) Metadata ii) ResultSet Metadata iii) Data CO5
Types iv) Exception
12 Explain 3 types of getConnection methods with syntax and example. CO5
Describe the following:
o Scrollable ResultSet o Callable statement o Transaction Processing
o Update Resultset o Callable statement object o Prepared Statement object
13 Write a Java program to execute a database transaction. CO5
14 Describe all the interfaces and classes present in the [Link]. CO5
15 Explain different types of exceptions occurred in JDBC. CO5
16 What is Connection Pooling? Explain with a neat labelled diagram and code snippets CO5
Last Date submission: 10/06/2026
Signature of the staff