Institute of Technology: Question Bank
Institute of Technology: Question Bank
Question Bank
Subject Name: Advanced Java Programming Subject Code: 21CS642
Course Learning Objectives: This course (21CS642) will enable students to:
Q. No Question COs
MODULE 1
1 What are Enumerations? Explain values() and valueof() methods with an example program? CO1
2 What is Autoboxing? Write a java program that demonstrates how autoboxing and unboxing CO1
3 takes place
What in expressionExplain
are Annotations? evaluation.
the following built in annotations with an example. CO1
Explain the following methods of java.lang.Enum with an example program- ordinal(), CO1
4 compareTo(), equals()
5 Explain how to obtain Annotations at runtime by use of Reflection. CO1
6 List and explain built in general purpose annotation. CO1
15 What is type annotation? Illustrate type annotation with specific TYPE_USE with an example. CO1
MODULE 2
16 What is Generics? Illustrate with an example. CO2
30 What is StringBuffer ? Explain any five method stringBuffer method with example. CO3
What is string in Java? Write a Java program that demonstrates any four constructors of string CO3
31
class.
32 Explain the following stringBuffer methods with an example. CO3
33 Differentiate between equals() and == with respect to string comparison CO3
37 List the difference between String class and String Buffer class. CO3
47 What is servlet? Explain the steps involved in using Tomcat for Servlet development CO4
49 List and explain the various JSP tags with examples. CO4
56 Explain the prepared statement object and callable statement in JDBC CO5
Explain the JDBC process for nitrating with DBMS show the code snippet for each step. CO5
57