USN~lJLJ BIS402
Fourth Semester [Link]. Degree Examination, June/July 2025
,~,.--,.~\1UTEO~
-'"~ ...-.. •.. .....\(~
Advanced .Java
~( MeA . o
rary Tl~\
10':(' L'b hrs. Max. Marks: 100
1« J 0
1\:::: ~'lt'e.. )~
\\.!- \.,
I l);
~\ o·
I.!.•
' j~
) t;)0 'ote: 1. Answer any FJI E fill! questions, choosing ONE fill! question from each module.
\\,. /.~ .~....,;. .:. 2. ill : Marks, L: B/0011l '05 level , C: Course outcomes. ,
~<~'/GAlO\\~~
.~"-~-~
--
Module - I M L C
Q.l a. I What IS Collection Framework? Explain the methods define by the 7 L2 COl
collection interface.
I -
h., Demonstrate ArrayList class collection with example. 7 L2 COl
c. : Explain how coiled ions can be accessed using an iterator with example. 6 L2 COl
I ~
OR
Q.2 a. Explain the following map classes: 10 L2 COl
i) Hashvlap ii) TreeMap .
. ..
bo What are cornparators'l Write a comparator program to sort accounts by last 10 L3 COl
name.
r
Module - 2
Q.3 a. I Explain the string comparison functions with suitable program. 6 L2 CO2
I
b. Explain the following built in methods with respect to Stringlsuffer class: 7 L2 CO2
i) capacity( )
i i) delete. )
iii) replace( )
iv) append( )
v) substring( ) I
-
c. i Write a .Java program that demonstrates any four constructors of string 7 L3 CO2
I class.
OR
Q.4 a. Write a Java program to remove duplicate characters from a given string 7 L3 C03
and display the resultant string.
b. Explain character extraction functions in string class. 7 L2 CO2
c. Explain constructors in Java string builder class. 6 L2 CO2 -
1 of2
I
I
I 't.l.~ ,-1------------1U-~('·I.\'.("~~1,110~,l:!~
~
la. E,\pl<ljil the difference ~ .~- r-v v
-A~"-l
v I (lilU
C:".;""
S'
'-'\\Ii1
Uf],."
"11«'
·.r t- n
<U~
',',','n
-
l·p"T'6-
"~) ! ~ ~- ~~-' 1I
II rn'l
I features of swing and explain. I i
I I 1 !
I I I
b. What is .lLabel
methods [Link]
class'? Explain
class. .
with example of any three constructors and 7
-+: _----;i ---LJ
L2 1 CO]
c. : Write a Java program in swing event handling applications that crcatcs Z 7 I L3 I C03 i
i buttons ALPHA and BETA and display« the (CXl "Alpha pressed" when I I I
. Alpha button is clicked and "Beta P,TS:-iCC:" when beta button is clicked i i
! I :
()I{ !
Q.6 -;'-f\\'hat is JPanc'l class') Explain the ~onstruetors or Jpancl class and give a ,'-6 "[ L2 I C03l
1 suitable example. ! I I I
I I __ I I '. I
b. i Whal is JChedBo,\ class? Lxplain the constructors l'i'lCheckI3ox class and 7 L2 C03 I
'~I
1 1 I
11
1
I ! give a suitable cxampk . I I I
1 What is Jl-rame class" Explain constructors and methods ofJlrarne class. i 7 I L2 I' C03 I
1
1 I I 1 '
I Q.7 I a. : Explain [he hfe cycle of servlet. Mod u I< - 4 I 6 i L21 C04
I I h. ; \Vrite -; Java sel vier program to display the name, tJSN and total marks b}'17 I L3 I C04
I I I accepung student detail. I I I
1----)- c. Describe ! the core interfaces tha~~provided l~ .ia~~'(servJeLhttP'p;Ckag~(7---1 --IC04i L3
I LI OR L __
L J_ --1
I V~_.Q
u 11a. I! What
"l l~ J('r"'LJ-"--'-·l·"·I'c··a-;ourt'"'cr~rlSDt"'1.·
..) : A}Jld tl t J ,; 11 it' ..)vI
,J ,I J. lUb'" ..-ith example
"VIlI ,-,-U /1 . 110...tLV I1121
Jo.....,. CO&., il
I I
------~-+--+--~
b .. What are cookies? How cookies are handled in JSP? Write a JSP program 10 I L2 C04 I
-------'
LJ to create and read a cookie_ .
Module - 5
-------'LLL.... i
1
What are database drivers? Explain [he different .!DBC driver types. ~ ~~~ I
I b. : Describe the various steps or JDBC with code snippets. IIU I Lz I LU~ i
1 1 --
1 I
I
I OR
IQ.l~. I Write any tw~_ syntax of established a connection to a database. 6 i L2 !I COS
b. What IS connection pooling? Explain connection pooling with a neat 7 L2 COS
diagram with snippets.
I··
I
c. I Describe the following
I i)
ii)
Callable statement
concepts:
Transaction processing.
7
I
L2 I COS I
-
, , I
201'2