Professional Documents
Culture Documents
Advanced Java and J2EE Question Bank 2021
Advanced Java and J2EE Question Bank 2021
io
-----------------------------------------------------------------------------------------
ADVANCED JAVA AND J2EE
[As per Choice Based Credit System (CBCS) scheme]
(Effective from the academic year 2017 -2018)
SEMESTER – V
Subject Code 17CS553 IA Marks 40
Number of Lecture Hours/Week 03 Exam Marks 60
-----------------------------------------------------------------------------------------
These Questions are being framed for helping the
students in the “FINAL Exams” Only (Remember for
Internals the Question Paper is set by your respective
teachers). Questions may be repeated, just to show
students how VTU can frame Questions.
- ADMIN
----------------------------------------------------------------------------------------
Module 1
----------------------------------------------------------------------------------------
1. What is auto-boxing? Write a program to demonstrate auto-
boxing/unboxing. (5-Marks) (1a) (Dec.2018/Jan.2019)
2. What do you mean by type wrapper? Explain numeric type wrapper with
an example program in JAVA. (5-Marks) (1b) (Dec.2018/Jan.2019)
3. Explain the following methods of java.lang.Enum with an example:
i. ordinal( )
ii. compareTo( )
iii. equals( ) (6-Marks) (1c) (Dec.2018/Jan.2019)
https://hemanthrajhemu.github.io
2|Page https://hemanthrajhemu.github.io
11. Discuss how reflections can be used at runtime with annotations. (6-
Marks) (2b) (June/July 2018)
12. Demonstrate single member annotations with an example. (5-Marks)
(2c) (June/July 2018)
i. ordinal( )
ii. compareTo( )
iii. equals( ) (8-Marks) (2a) (Dec.2017/Jan.2018)
----------------------------------------------------------------------------------------
ANSWER SCRIP FOR THESE
QUESTIONS WILL BE UPLOADED ASAP
https://hemanthrajhemu.github.io
1|Page https://hemanthrajhemu.github.io
-----------------------------------------------------------------------------------------
ADVANCED JAVA AND J2EE
[As per Choice Based Credit System (CBCS) scheme]
(Effective from the academic year 2017 -2018)
SEMESTER – V
Subject Code 17CS553 IA Marks 40
Number of Lecture Hours/Week 03 Exam Marks 60
-----------------------------------------------------------------------------------------
These Questions are being framed for helping the
students in the “FINAL Exams” Only (Remember for
Internals the Question Paper is set by your respective
teachers). Questions may be repeated, just to show
students how VTU can frame Questions.
- ADMIN
----------------------------------------------------------------------------------------
Module 2
----------------------------------------------------------------------------------------
1. Explain ArrayList. Write a program to demonstrate how ArrayList can be
used to insert and remover string. (8-Marks) (3a) (Dec.2018/Jan.2019)
i. binarySearch
ii. copyOf
iii. equals
iv. fill (8-Marks) (4b) (Dec.2018/Jan.2019)
https://hemanthrajhemu.github.io
2|Page https://hemanthrajhemu.github.io
10. Explain the methods defined by. List Iterator interface. (8-Marks) (4a)
(Dec.2017/Jan.2018)
11. Explain the constructors of TreeSet class and write a java program to create
TreeSet collection and access it via an Iterator. (08 Marks) (4a)
(Dec.2017/Jan.2018)
12. Explain any four legacy classes of Java’s collection Framework (8-Marks)
(4b) (Dec.2017/Jan.2018)
----------------------------------------------------------------------------------------
ANSWER SCRIP FOR THESE
QUESTIONS WILL BE UPLOADED ASAP
Visit:
https://hemanthrajhemu.github.io
THANK YOU
--------------------------------------------------------------------------------------
https://hemanthrajhemu.github.io
1|Page https://hemanthrajhemu.github.io
-----------------------------------------------------------------------------------------
ADVANCED JAVA AND J2EE
[As per Choice Based Credit System (CBCS) scheme]
(Effective from the academic year 2017 -2018)
SEMESTER – V
Subject Code 17CS553 IA Marks 40
Number of Lecture Hours/Week 03 Exam Marks 60
-----------------------------------------------------------------------------------------
These Questions are being framed for helping the
students in the “FINAL Exams” Only (Remember for
Internals the Question Paper is set by your respective
teachers). Questions may be repeated, just to show
students how VTU can frame Questions.
- ADMIN
----------------------------------------------------------------------------------------
Module 3
----------------------------------------------------------------------------------------
1. Explain following StringBuffer methods with an example:
i. insert
ii. append
iii. replace
iv. substring (8-Marks) (5a) (Dec.2018/Jan.2019)
2. Differentiate String and StringBuffer class. Write a program to
demonstrate different construction of String class. (8-Marks)
(5b) (Dec.2018/Jan.2019)
3. Write a program to remove duplicate characters from a given
string and display the resultant string. (06 Marks) (6a)
(Dec.2018/Jan.2019)
4. Differentiate between equals( ) and = = with respect to string
with a program. (06 Marks) (6b) (Dec.2018/Jan.2019)
https://hemanthrajhemu.github.io
2|Page https://hemanthrajhemu.github.io
https://hemanthrajhemu.github.io
3|Page https://hemanthrajhemu.github.io
i. substring ()
ii. concat ( )
iii. replace ( )
iv. trim ( ) (8-Marks) (6a) (Dec.2017/Jan.2018)
16. Explain the following methods of stringBuffer class.
i. append ()
ii. insert ()
iii. reverse ()
iv. replace. (8-Marks) (6b) (Dec.2017/Jan.2018)
----------------------------------------------------------------------------------------
ANSWER SCRIP FOR THESE
QUESTIONS WILL BE UPLOADED ASAP
Visit:
https://hemanthrajhemu.github.io
THANK YOU
--------------------------------------------------------------------------------------
https://hemanthrajhemu.github.io
1|Page https://hemanthrajhemu.github.io
-------------------------------------------------------------------------------------
ADVANCED JAVA AND J2EE
[As per Choice Based Credit System (CBCS) scheme]
(Effective from the academic year 2017 -2018)
SEMESTER – V
Subject Code 17CS553 IA Marks 40
Number of Lecture Hours/Week 03 Exam Marks
60
-------------------------------------------------------------------------------------
These Questions are being framed for helping the
students in the “FINAL Exams” Only (Remember for
Internals the Question Paper is set by your
respective teachers). Questions may be repeated,
just to show students how VTU can frame Questions.
- ADMIN
-------------------------------------------------------------------------------------
Module 4
-------------------------------------------------------------------------------------
1. What is the role of Tomcat server? Explain
different steps involved in configuring for
development of servlet program execution. (8-
Marks) (7a) (Dec.2018/Jan.2019)
2. Write a Java servlet program to accept two
parameters from webpage, find the sum of
them, display the result in web page. Also give
necessary html script to create web page. (8-
Marks) (7b) (Dec.2018/Jan.2019)
3. Explain different JSP tags with a program to
demonstrate all tags. (8-Marks) (8a)
(Dec.2018/Jan.2019)
https://hemanthrajhemu.github.io
2|Page https://hemanthrajhemu.github.io
https://hemanthrajhemu.github.io
3|Page https://hemanthrajhemu.github.io
https://t.me/joinchat/AAAAAFTtp8kuvCHALxuMaQ
-------------------------------------------------------------------------------------
https://hemanthrajhemu.github.io
1|Page https://hemanthrajhemu.github.io
-----------------------------------------------------------------------------------------
ADVANCED JAVA AND J2EE
[As per Choice Based Credit System (CBCS) scheme]
(Effective from the academic year 2017 -2018)
SEMESTER – V
Subject Code 17CS553 IA Marks 40
Number of Lecture Hours/Week 03 Exam Marks 60
-----------------------------------------------------------------------------------------
These Questions are being framed for helping the
students in the “FINAL Exams” Only (Remember for
Internals the Question Paper is set by your respective
teachers). Questions may be repeated, just to show
students how VTU can frame Questions.
- ADMIN
----------------------------------------------------------------------------------------
Module 5
----------------------------------------------------------------------------------------
1. What are database drivers? Explain
different JDBC driver types. (8-Marks) (9a)
(Dec.2018/Jan.2019)
2. List and explain various statement objects
in JDBC. (8-Marks) (9b)
(Dec.2018/Jan.2019)
3. Explain different steps involved in JDBC
process, with a code snippet. Also give
exception handling block. (8-Marks) (10a)
(Dec.2018/Jan.2019)
4. Write a program to connect to database
with following information:
https://hemanthrajhemu.github.io
2|Page https://hemanthrajhemu.github.io
https://hemanthrajhemu.github.io
3|Page https://hemanthrajhemu.github.io
https://t.me/joinchat/AAAAAFTtp8kuvCHALxuMaQ
--------------------------------------------------------------------------------------
https://hemanthrajhemu.github.io