BCS613D – Advanced Java Solved Model Question Paper

BCS613D – Advanced Java Solved Model Question Paper


Module 1

1.a) What is collection framework? Explain the methods defined by the following interfaces:
i) Collection ii) List iii) Navigable Set iv) Queues.

1.b) Define a Comparator. Mention the methods provided by the Comparator interface. Illustrate its use with a program that demonstrates sorting elements in a TreeSet in reverse order.

1.c) Discuss the various methods provided by the Array class in Java. Illustrate the usage of these methods with a suitable example program.

OR

2.a) What are legacy classes? Explain any four legacy classes of java’s collection framework with suitable programs.

2.b) Describe the concept of Spliterators in Java. Enumerate the key methods provided by the Spliterator interface. Illustrate the usage of Spliterators with a suitable example.


Module 2

3.a) Illustrate the use of StringBuffer methods: append(), insert(), reverse(), and delete() with proper examples

3.b) Describe all the string comparison methods available in java with examples.

3.c) Differentiate between String, StringBuffer, and StringBuilder classes with focus on mutability, performance, and thread safety.

OR

4.a) Discuss various overloaded constructors of the String class with suitable code examples. Explain the behavior of each.

4.b) Demonstrate the usage of the string modification methods in java with an example each.

4.c) Explain the usage of indexOf() and lastIndexOf() methods with one example each.


Module 3

5.a) Discuss the functionality of the four commonly used buttons in Java Swing. Illustrate each with a suitable example.

5.b) Describe the MVC Connection. How is this design pattern implemented in Java Swing applications?

5.c) Elaborate the concept of painting in Java Swing. Illustrate your explanation with a suitable example program.

OR

6.a) What is Java Swing? Discuss the evolution of Java Swing and explain its key features.

6.b) Explain the following swing components with an example program:
i)JLabel ii)JTextField iii) JScrollPane iv) JTable


Module 4

7.a) Define JSP and explain the following:
i) Tags ii) Variables iii) Objects

7.b) Explain the lifecycle of servlet with an example.

7.c) Elaborate on session tracking with an example

OR

8.a) Describe all the interface and classes present in the jakarta.servlet Package

8.b) Explain any 2 cookie methods and elaborate on how cookies can be handled in servlets.


Module 5

9.a) Elaborate on the concepts of JDBC and discuss the types of JDBC drivers.

9.b) Explain the steps involved in associating the JDBC-ODBC bridge with a database using the ODBC Data Source Administrator

OR

10.a) Give a brief overview on how JDBC process.

10.b) Discuss the following with respect to JDBC
i) Metadata ii) ResultSet Metadata iii) Data Types iv) Exceptions

Leave a Reply

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