GBGS SCHEME
USN BIS402
Fourth Semester B.E./B.Tech. Degree Supplementary Examination,
June/July 2024
Advanced Java
Time: 3 hrs. Max, Marks: 100
Note: 1. Answer any FIVE full questions, choosing ONE full question fruom each mndule.
2. M: Marks, L: Bloom 's level, C: Course outcomes.
Module-1 MI.
0. a,ANhat is collection framework? Explain the methods defincd by the 10 L2 CO1
collection interface with an cxample.
b. Implement a java program to illustrate storing user delined classes in 10 13 COI
collection.
OR
Q.2 a.ANhat are comparators? Develop ajava program to demonstrate the working 10 L3 COI
of a comparator.
Explain any four legacy collection in framework 10 L2 COL
Module -2
Q.3 What is astring? Explain the string constructors with suitable programming 10 L2 CO2
example.
b. Write a java program to remove duplicate characters from a given string 10 L3 cO2
"JAVA J2EE" and display the resultant string
OR
Q.4 A. Implement ajava program to illustrate the use of different (ypes of 10 L3 CO2
StringBufler methods
. Explain the following string methods with an example 10 L2 C02
i)getChars( )
ii) regionMatches( )
ii) Concat( )
iv) CompareTo( )
v) LastindexOf()
Module -3
Q.5 What are Swings in Java? Explain two key swing teatures and also explan 10 L.2 CO3
4 MVC architecture.
Demonstrate a swing event handling application that creates 2 buttons 10 L3CO3
Alpha and Beta and displays the text "Alpha pressed" when alpha button is
clicked and "Beta pressed" when beta button is clicked.
Iof2
BIS402
OR
Q.6 a Explain the following with example: 10 L3 CO3
1) JLabel and Imagclcon 1 7
1) JTextField.
b/ What is the difference between checkboxes and radiobuttons? Create a 10 L2 CO3
simple application that enables a uscer to select one of the following items:
) Radiol ii) Radio2 iii) Radio3 iv) Radio4.
0.7
Module -4
What is servlet? Explain the life cycle of servlets. 8 L2 C04
Write a Java servlet program that demonstrates how parameters can be 12 L3 C04
accessed from HTMI
OR
0.8 What is JSP? Explain the various types of JSP tags with example. 10 L2CO4
b. A Java program to create and read the cookie for the given cookie
name as 10 L3 C04
"EMPID" and its value as "AN2356".
Module -5
Q.9 a Explain the different steps involved in JIDBC with code snippets.
10 L2 cos
b. Explain the four types of JDBC driyer types.
10 L2 COs
OR
Q.10 a. Write ajava program o insert data into student DATABASE ani retrieve 10
information based on particular queries (Explain update, delete, search). L3 COs
Write a short noles on:
i) Resultset 10 L2 COs
ii) Transaction processing
2 of2
CBCS SCHEME
BISA
urth Semester B.E./B.Tech. Degree Examination, Dec.2024/Jan.2025
Advance Java
ne: 3 hrs. Max. Marks: 100
Note: 1. Answer any FIVE full questions, choosing ONE full question from each module.
2. M: Marks, L: BIoom 's level, C: Course outcomes.
Module - | M
What is colleetion framework? Explain the methods detine by thc 7 L2 C(
collection interlace.
. Implement a java program to demonstrate creating an ArrayList, adding 8 I4 CO
clements, removing elements, sorting elements of ArrayList. L2 CO
. Demonstrate with an example how accessing a collection Via an lerator 5
can be donc.
OR
Explain the following map classes : (i) llashMap (ii) TreeMap. 8 L2 C
. Explain ArrayList class and explain the following methods : 8 L2 CO
(i)binarysearch (i) Copy (iii) equals (iv) fill
Explain legacy classes. L2-C
Module-2
What is string in Java? Implement a Java program to illustrate the use of 8 L3 Ce
any four constructors of string class.
ENplain the following stringBuffer methods with an example: L.2 C
() insert (ii) append (ii) replace (iv) substring.
4 L2 C
Diierentiate between cquals ()and = = with respeet to string comparison.
OR
Explain the following string buler class with examples : 8 L2C
(0) Capacity
(i) Reverse
(iii) CharAt(0
(iv) deleteCharAt ().
duplicate characters from a given L3 C
lmplement a jva program to remove
string and display the resultant string. CompareTolgnoreCase ( L2 C
from
How CompareTo () method diflers
Inethod?
Modu!e -3
swing und AWT? Why Swing components 8 1.2 C
What ure differences between
component? 12 L2 |C
are called light weight suitable code :
folloving with
Explain the
JTextFicld. JCombobox.
JButton. JLable.
OR 6 L.2 C
Fxplain the paint package
inswings.
Iof2
b Create a swing application having two buttons named alpha and beta. When 1
cither of buttons presscd, it should display alpha pressed" and "beta
pressed" respectively.
C. Write short note on MVC connection.
Module-4
Q.7 a. lixplain the life cycle of Servlet.
4
b. Describe the core interfaces that are provided
in Javax, Servlet, http 8
package.
Implement a Servlet program to display the name, USN and total marks by
accepting student detail. 8
OR
Q.8t a. What is JSP? Explain the various types of JSPtags with examples. 10
b. What are cookies? How cookies are handled in
Io create and read cookie. JSP? Write a JSP program 10
Module -5
Qa.. What are database drives? Explain the ditlerent JDBC
b. Describe the various steps ofJDBC driver types. 6
c. with code snippets
Write any two syntax of established a connection 10
to a database. 4
OR
Q.10 a. Describe the following concepts :
Scrollable Resultset 10
Callable statement.
(1) Transaction proccssing
(iv) Updatable Resultset.
b. What is connection pooling? Explain connection pooling with
Snippets, code
C. Explain different kinds of
exceptions in Database. 4
GBCS SCHEME
BIS402
USN
lolala s 4 Examination, Junc/July
2024
B.E/B.Tech.Degree
Fourth Semester Advanced Java
Max. Marks: 100
Time: 3 hrs. from each module.
full questions, choosing ONE full question
Note: I. Answer any FIVE
2 M: Marks, L: Bloom 's level,
C: Course outcomes.
ML C
Module- I 10 L2 CO1
collection Frame Work? Explain the methods defined by the following
Q.1 a. What is
Interfaces:
(i) Collection
(1i) List
(I11 Sorted Set
co1
legacy classes of Java's collection 10 L2
(iv) Queue
What are Legacy Classes? Explain any four
Frame work with suitable program.
OF
an iteratdr with example. 5 L3 CO1
Q.2a. Explain how collectors can be accessed using underwent recently? 5 L1 CoI
What are the various changes that collection framework
to store user-defined classes in 10 L2 C01
C. Wih an example program, explain how
tcollections.
Module -2 5L2 CO2
Q.3 Explain any two character extraction methods of string class. |10 L2CO2
b. cgnstructors used in Java with examples.
|Explain the various string methods 5.2 CO2
c..ExDkun additional string
OR
5 L2 CO2
Q4 a. Briefly describe special string operations with syntax and examples. 10 L2 cO2
b. Explain the following methods of string buffer class with examples:
0) capacity ()
reversc ( )
insert
(iy append () 5 L2 CO2
c. Explain any four string modification methods of string class.
Module -3
Q.5 , Explain the four types of the swing buttons, with demonstration program. 10 L3 CO3
5 L2C03
b.Explain MVC connector Architecture.
c.What are the two key swing features? Discuss. LI CO3
OR
10 L2CO3
0.6 a. Explain the following
) JLabel and Image lcon.
(i) JTextField 10 L3 CO3
b. Write aprogram to demonstrate a simple swing application.
Module -4
L2 CO4
Q.7 n. Explain the life cvcle of Servlets. L2 CO4
5
D. Describe the core interfaces that are provided in Jakarta (Javax), Servlet, http
package.
10 L2 CO4
1e Deline JSP Explain the d1fferent types of JSP tags by taking suitable example.
OR
Iof2
BIS402
Q.8 Explain any two cookies method.
b With a 5 L! co
code, explain how to handle HTTP get
requests. requests and HTTP post | 10 L2 CO
C.
Explain how cookies can be handled using servlets. 5 L4 co4
Module -5
Q.9 Explain different steps involved in JDBC process with acode snippet. 10 L3COs
b. List and elaborate Database Metadata Object methods. 5 L2 COs
5 L2 COs
C. | LIst and explain three kinds of exception occurred in JDBC.
OR
a 12 L3 COs
steDs to create the association between the database and
Q.10 a. Mention all
8 L2 cOs
JDBC/ODBC bridge.
JDBC drivers.
b. Explain the four types of