21CS642 Solved Model Question Paper-1

21CS642 Advance Java Programming Solved Model Question Paper-1 with Answer

Module 1

1.A] What is an Enum? Write a program that displays enumeration constants using the values() and valueOf() methods.

1.B] Explain with examples:
i) Autoboxing and Unboxing
ii) Type Wrapper

OR

2.A] Explain single-member annotations with a program example.

2.B] Describe how to obtain annotations at runtime using Reflection.


Module 2

3.A] What are Generics? Provide an example program.

3.B] Explain how generics improve type safety.

OR

4.A] Write a program using a Generic Interface.

4.B] Write a note on:
i) Bounded Wildcards
ii) Erasure


Module 3

5.A] Explain different types of String Constructors with examples.

5.B] What are the different character extraction methods? Explain with a program.

OR

6.A] Define String handling. Explain special string operations with examples

6.B] Explain all String Buffer methods with examples


Module 4

7.A] List and explain core classes and interfaces in the javax.servlet package

7.B] Explain how to read servlet parameters with an example

OR

8.A] Explain how to handle HTTP request and response with an example.

8.B] Write a note on:
i) Session Tracking
ii) Cookies


Module 5

9.A] Explain the four types of JDBC drivers.

9.B] Describe various steps of JDBC with code snippets.

OR

10.A] Write a Java program to execute a database transaction.

10.B] Explain Callable statement object with an example program.

Leave a Reply

Your email address will not be published. Required fields are marked *