? ,
J.
/
k 17CS553
--- Content provided by FirstRanker.com ---
Fifth Semester B.E. Degree Examination, Dee.2019/Jan.2020Advanced Java and J2EE
Time: 3 hrs. Max. Marks: 100
Note: Answer any FIVE full questions, choosing ONE full question from each module.
Module- 1
--- Content provided by FirstRanker.com ---
1 a. What are Enumerations? Explain values( ) and value0f( ) methods with an exampleprogram. (05 Marks)
b. What is Autoboxing? Write a java program that demonstrates how autoboxing and unboxing
takes place in expression evaluation. (05 Marks)
c. What are Annotations? Explain the following Built-in annotations with an example program:
--- Content provided by FirstRanker.com ---
@Override @Inherited @Retention (10 Marks)OR
2 a. Explain the following methods of java.lang.Enum with an example program.
(i) ordinal( ) (ii) compareTo( ) (iii) equals( )
b. Explain how to obtain Annotations at Run Time by use of Reflection.
--- Content provided by FirstRanker.com ---
(10 Marks)(10 Marks)
Module-2
3 a. What is collection framework? Explain the methods defined by collection interface.
(10 Marks)
--- Content provided by FirstRanker.com ---
b. Explain the constructors of HashSet class with an example program. (10 Marks)OR
4 a. Explain the constructors of TreeSet class and write java program to
collection.
b. Explain any four legacy classes olJava's collection framework.
--- Content provided by FirstRanker.com ---
Module-35 a. What is string in Java? Write a java program that demonstrates any four
String class.
b. Differentiate between equals( ) and == with respect to String comparison .
c. Explain any two character extraction methods of String class.
--- Content provided by FirstRanker.com ---
create TreeSet(10 Marks)
(10 Marks)
constructors of
(10 Marks)
--- Content provided by FirstRanker.com ---
(05 Marks)(05 Marks)
7 a.
b.
c.
--- Content provided by FirstRanker.com ---
Module-4Explain the differences between Servlets and CGI programs.
Write a Java Servlet program that demonstrates how parameters can
HTML.
Explain any two Cookies methods.
--- Content provided by FirstRanker.com ---
(10 Marks)(10 Marks)
(05 Marks)
be accessed from
(10 Marks)
--- Content provided by FirstRanker.com ---
(05 Marks)OR
6 a. Explain any four String modification methods of String class.
b. Explain the following methods of StringBuffer class:
(i) append( ) (ii) insert( ) (iii) reverse( ) (iv) replace
--- Content provided by FirstRanker.com ---
1 of 2FirstRanker.com - FirstRanker's Choice
CS?
? ,
J.
--- Content provided by FirstRanker.com ---
/k 17CS553
Fifth Semester B.E. Degree Examination, Dee.2019/Jan.2020
Advanced Java and J2EE
Time: 3 hrs. Max. Marks: 100
--- Content provided by FirstRanker.com ---
Note: Answer any FIVE full questions, choosing ONE full question from each module.Module- 1
1 a. What are Enumerations? Explain values( ) and value0f( ) methods with an example
program. (05 Marks)
b. What is Autoboxing? Write a java program that demonstrates how autoboxing and unboxing
--- Content provided by FirstRanker.com ---
takes place in expression evaluation. (05 Marks)c. What are Annotations? Explain the following Built-in annotations with an example program:
@Override @Inherited @Retention (10 Marks)
OR
2 a. Explain the following methods of java.lang.Enum with an example program.
--- Content provided by FirstRanker.com ---
(i) ordinal( ) (ii) compareTo( ) (iii) equals( )b. Explain how to obtain Annotations at Run Time by use of Reflection.
(10 Marks)
(10 Marks)
Module-2
--- Content provided by FirstRanker.com ---
3 a. What is collection framework? Explain the methods defined by collection interface.(10 Marks)
b. Explain the constructors of HashSet class with an example program. (10 Marks)
OR
4 a. Explain the constructors of TreeSet class and write java program to
--- Content provided by FirstRanker.com ---
collection.b. Explain any four legacy classes olJava's collection framework.
Module-3
5 a. What is string in Java? Write a java program that demonstrates any four
String class.
--- Content provided by FirstRanker.com ---
b. Differentiate between equals( ) and == with respect to String comparison .c. Explain any two character extraction methods of String class.
create TreeSet
(10 Marks)
(10 Marks)
--- Content provided by FirstRanker.com ---
constructors of(10 Marks)
(05 Marks)
(05 Marks)
7 a.
--- Content provided by FirstRanker.com ---
b.c.
Module-4
Explain the differences between Servlets and CGI programs.
Write a Java Servlet program that demonstrates how parameters can
--- Content provided by FirstRanker.com ---
HTML.Explain any two Cookies methods.
(10 Marks)
(10 Marks)
(05 Marks)
--- Content provided by FirstRanker.com ---
be accessed from(10 Marks)
(05 Marks)
OR
6 a. Explain any four String modification methods of String class.
--- Content provided by FirstRanker.com ---
b. Explain the following methods of StringBuffer class:(i) append( ) (ii) insert( ) (iii) reverse( ) (iv) replace
1 of 2
OR
8 a.
--- Content provided by FirstRanker.com ---
Define JSP. Explain different types of JSP tags by taking suitable example.
b. List and explain core classes and interfaces in javax.servlet package.
Mod ule-5
9 a. Explain the four types of JDBC drivers.
--- Content provided by FirstRanker.com ---
b. Describe the various steps of JDBC with code snippets.OR
10 a. Write a Java program to execute a database transaction.
b. Explain :
(i) Callable Statement Object
--- Content provided by FirstRanker.com ---
(ii) Prepared Statement Object.(10 Marks)
(10 Marks)
(10 Marks)
(10 Marks)
--- Content provided by FirstRanker.com ---
(10 Marks)(10 Marks)
2 of 2
FirstRanker.com - FirstRanker's Choice
--- Content provided by FirstRanker.com ---