0% found this document useful (0 votes)
50 views

Institute of Technology: Question Bank

Uploaded by

myperson.kruthi
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
50 views

Institute of Technology: Question Bank

Uploaded by

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

PKM Educational Trust ®

R.R. Institute of Technology


Affiliated to VTU Belgaum and Approved by AICTE, New Delhi, Recognised by Govt. of Karnataka
Accredited by NAAC with ‘B+’
Raja Reddy Layout, Chikkabanavara, Bengaluru – 560 090
Department of Computer Science & Engineering

Question Bank
Subject Name: Advanced Java Programming Subject Code: 21CS642

Course Learning Objectives: This course (21CS642) will enable students to:

 Understanding the fundamental concepts of Enumerations and Annotations


 Apply the concepts of Generic classes in Java programs
 Demonstrate the fundamental concepts of String operations
 Design and develop web applications using Java servlets and JSP
 Apply database interaction through Java database Connectivity

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

Explain the following with examples CO1


7 Wrappers, autoboxing, unboxing
8 Explain how to obtain annotation at Runtime by reflection. CO1
9 Write a program using Enumeration for a decision maker using options YES/NO/LATER. CO1
Explain the following with respect to CO1
10 Single member annotation, full annotation, Default values in annotations
11 Explain the limitations of Enumerations. CO1
12 Enumeration as Class types; Illustrate with an example. CO1
13 Write a program to illustrate difference between wrappers and autoboxing. CO1
14 Explain retention annotation with an example. 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

17 “Generic allows Type Safety” Explain in detail with an example. CO2


Define the general syntax of Generics. Take an example program for implementing Stack CO2
18
operations using Generics
19 Why do we need Wildcard arguments in Generics? CO2
Write a program to illustrate the usage of Wildcard arguments. CO2
20
21 What is Bounded types? Develop a program for bounded types. CO2
How to use wild card arguments in bounded types. List down the advantages of using wild card CO2
22 arguments in bounded types.

23 Write syntax for Generic method. CO2


24 Can constructors be generic, if so show an example for the same? CO2
25 Develop a program for generic interface. CO2

26 List down the generic restrictions. CO2


MODULE 3
27 Write java program to demonstrate use of contributor in string. CO3
28 Explain string comparison, searching and modifying with examples CO3

29 Illustrate any four character extraction method with examples. CO3

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

34 Explain the following StringBuffer class with examples: CO3


Write a program to remove duplicate characters from a given string and display the resultant CO3
35 string.
36 How compareTo() method differs from compareToIgnoreCase() method? CO3

37 List the difference between String class and String Buffer class. CO3

38 Explain how to check the occurrence of a substring in a given string. CO3

39 Explain any two character handling functions in string class CO3

40 Write a java program to sort names in Bubble sort. CO3


MODULE 4
41 Explain the lifecycle of servlet. CO4
42 Write a servlet program to accept parameter from HTML username and password and display CO4
43 Explain the role of Tomcat server in servlets CO4

44 Explain sessions and cookies in JSP CO4


45 How arrays are defined in JSP. CO4
46 List the difference between JSP and Servlet. Also explain the different JSP tags with example. CO4

47 What is servlet? Explain the steps involved in using Tomcat for Servlet development CO4

48 Develop a servlet program that illustrate how to use cookies. CO4

49 List and explain the various JSP tags with examples. CO4

50 Explain the difference between servlets and CGI programs CO4


MODULE 5
51 What are database drivers? Explain the different JDBC driver types. CO5
52 Describe the various steps of JDBC with code snippets. CO5
53 Write any two syntax of establishing a connection to a database CO5
54 What is connection pooling? Explain connection pooling with neat diagram with code snippets CO5
Describe the following concepts. CO5
55 Scrollable result set, Callable statement.

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

58 Explain transaction processing in JDBC. CO5

59 Explain the types of exceptions occurred in JDBC. CO5


60 Explain in detail Transaction processing and Updatable result set. CO5

Course Outcomes: Students will be able to


CO-1: Understanding the fundamental concepts of Enumerations and Annotations
CO-2: Apply the concepts of Generic classes in Java programs
CO-3: Demonstrate the concepts of String operations in Java
CO-4: Develop web based applications using Java servlets and JSP
CO-5: Illustrate database interaction and transaction processing in Java

Course In-Charge HOD

You might also like