0% found this document useful (1 vote)
1K views2 pages

Advance Java Vtu Previous Year Question Paper

Advance Java and j2ee previous year question paper

Uploaded by

Madhan HS
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (1 vote)
1K views2 pages

Advance Java Vtu Previous Year Question Paper

Advance Java and j2ee previous year question paper

Uploaded by

Madhan HS
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

m

0a
USN 18CS644

:4
Sixth Semester B.E. Degree Examination, Dec.2023/Jan.2024

4
:5
Advanced Java and J2EE

08

C
Time: 3 hrs. Max. Marks: 100

-V
4
Note: Answer any FIVE full questions, choosing ONE full question from each module.
2. Any revealing of identification, appeal to evaluator and /or equations written eg, 42+8 = 50, will be treated as malpractice.

02

C
Module-1

-V
1 a. Define Enumerations. Develop a Java program to implement the following built-in methods
-2
and explain : (i) values( ) (ii) valueOf( ) (iii) ordinal( ) (vi) compareTo( )

C
02
(v) equals( ) (10 Marks)

-V
b. What is Wrapper class? Explain the following with examples :
Important Note : 1. On completing your answers, compulsorily draw diagonal cross lines on the remaining blank pages.

(i) Boxing
6-

(ii) Un-Boxing
C
-2

(iii) Auto-boxing
-V
(iv) Auto-unboxing (10 Marks)
U
VT

OR
C

2
am
a. What are annotations? Explain the following Built-in annotations with examples:
-V

(i) @Override
(ii) @Inherited
27

C
C

(iii) @Retention -V
(iv) @Supress Warnings
-V

(10 Marks)
5:

b. Explain the following with respect to annotations :


:0

(i) Single member annotations.


C
C

(ii) Default values in annotations. (10 Marks)


-V
09
-V

Module-2
C

3 a. What is collection frame work? Explain the methods defined by the following interfaces :
4
C

-V

(i) Collection
02
-V

(ii) List
(iii) Sorted Set
-2

(iv) Queue
VC

(10 Marks)
-V

b. Explain how collections can be accessed using an iterator with example. (06 Marks)
2

c. Explain HashMap with example. (04 Marks)


-0

C
26

OR
-V

4 a. Explain the following collection classes by constructing a JAVA program :


(i) Linked List
C

(ii) Array List


-V

(iii) Tree Set


(iv) Hash Set (10 Marks)
b. What is Legacy classes? Explain the different Legacy classes with a Java Program.
C

(10 Marks)
-V
C

1 of 2
-V
VC
18CS644

m
0a
Module-3

:4
5 a. What is string in Java? Explain the different constructors of string class. Also list the
difference between String Class and String Buffer class. (10 Marks)

4
b. Explain the difference between equals and = = with example. (05 Marks)

:5
c. Explain how to check the occurance of a substring in a given string. (05 Marks)

08

C
OR

-V
6 a. Explain the following built in methods with respect to string buffer class :

4
(i) capacity ( )

02

C
(ii) delete ( )

-V
(iii) replace ( )
(iv) append ( )
(v)
-2
substring ( ) (10 Marks)

C
02
b. Explain any two character handling functions in string class. (04 Marks)

-V
c. Write a java program to sort names in Bubble sort. (06 Marks)
6-

Module-4
C
-2

7 a. Explain the life cycle of servlet. (06 Marks)


-V
b. Write a Servlet program to accept parameter from HTML (username & password) and
U

display. (08 Marks)


VT

c. Explain the role of Tomcat server in servlets. am (06 Marks)


-V

OR
27

8 a. List the difference between JSP and Servlet. Also explain the different JSP tags with

C
C

example. -V (10 Marks)


-V

b. Explain sessions and cookies in JSP.


5:

(06 Marks)
c. How arrays are defined in JSP? (04 Marks)
:0

C
C

-V

Module-5
09
-V

9 a. What is JDBC? Explain the different JDBC driver types. (10 Marks)
b. What is statement object in JDBC? Explain the following statement objects with example :
C
4

(i) Preparedstatement
C

-V

(ii) CollableStatement
02

(10 Marks)
-V

OR
-2

C
VC

10 a. Explain ScrollableResultSet and UpdatableResultSet object in JDBC. (10 Marks)


-V
2

b. Explain transaction processing in JDBC. (06 Marks)


-0

c. Explain the types of exceptions occurred in JDBC. (04 Marks)


C
26

*****
-V
C
-V
C

2 of 2
-V
C
-V
VC

You might also like