USN                                                                                                        BCS613D
Sixth Semester B.E./B.Tech. Degree Examination, June/July 2025
                                                   Advanced Java
      Time: 3 hrs.                                                                                    Max. Marks: 100
                     Note: 1. Answer any FIVE full questions, choose ONE full question from each module.
                                  2. M: Marks, L: Bloom’s Level, C: Course Outcomes.
                                            QUESTIONS                                                       M        L   C
                                                             MODULE 1
            What is collection framework? Explain the methods defined by the following interfaces:
Q.1    a.                                                                                                   10   L2      CO1
            i) Collection        ii) List   iii) Navigable Set      iv) Queues.
            Define a Comparator. Mention the methods provided by the Comparator interface.
       b.   Illustrate its use with a program that demonstrates sorting elements in a TreeSet in             5   L3      CO1
            reverse order.
            Discuss the various methods provided by the Array class in Java. Illustrate the usage of
       c.                                                                                                    5   L3      CO1
            these methods with a suitable example program.
                                                                 OR
            What are legacy classes? Explain any four legacy classes of java's collection framework
Q.2    a.                                                                                                   10   L2      CO1
            with suitable programs.
            Describe the concept of Spliterators in Java. Enumerate the key methods provided by the
       b.                                                                                                   10   L3      CO1
            Spliterator interface. Illustrate the usage of Spliterators with a suitable example.
                                                             MODULE 2
            Illustrate the use of StringBuffer methods: append(), insert(), reverse(), and delete() with
Q.3    a.                                                                                                   10   L3      CO2
            proper examples
       b.   Describe all the string comparison methods available in java with examples.                      5   L2      CO2
            Differentiate between String, StringBuffer, and StringBuilder classes with focus on
       c.                                                                                                    5   L4      CO2
            mutability, performance, and thread safety.
                                                                 OR
            Discuss various overloaded constructors of the String class with suitable code examples.
Q.4    a.                                                                                                   10   L3      CO2
            Explain the behavior of each.
       b.   Demonstrate the usage of the string modification methods in java with an example each.           5   L3      CO2
       5.   Explain the usage of indexOf() and lastIndexOf() methods with one example each.                  5   L3      CO2
                                                             MODULE 3
            Discuss the functionality of the four commonly used buttons in Java Swing. Illustrate
Q.5    a.                                                                                                   10   L3      CO3
            each with a suitable example.
            Describe the MVC Connection. How is this design pattern implemented in Java Swing
       b.                                                                                                    5   L2      CO3
            applications?
            Elaborate the concept of painting in Java Swing. Illustrate your explanation with a
       c.                                                                                                    5   L3      CO3
            suitable example program.
                                                                 OR
Q.6    a.   What is Java Swing? Discuss the evolution of Java Swing and explain its key features.           10   L2      CO3
            Explain the following swing components with an example program:
       b.                                                                                                   10   L3      CO3
            i)JLabel        ii)JTextField      iii) JScrollPane    iv) JTable
                                                             MODULE 4
            Define JSP and explain the following:
Q.7    a.                                                                                                   10   L2      CO4
            i) Tags       ii) Variables     iii) Objects
       b.   Explain the lifecycle of servlet with an example.                                                5   L3      CO4
       c.   Elaborate on session tracking with an example                                                    5   L3      CO4
                                                              OR
Q.8    a. Describe all the interface and classes present in the jakarta.servlet Package                     10   L2      CO4
       b. Explain any 2 cookie methods and elaborate on how cookies can be handled in servlets.             10   L3      CO4
                                                    MODULE 5
Q.9    a. Elaborate on the concepts of JDBC and discuss the types of JDBC drivers.                           8   L2      CO5
          Explain the steps involved in associating the JDBC-ODBC bridge with a database using
       b.                                                                                        12   L2   CO5
          the ODBC Data Source Administrator
                                                            OR
Q.10   a. Give a brief overview on how JDBC process.                                             10   L2   CO5
          Discuss the following with respect to JDBC
       b.                                                                                        10   L2   CO5
          i) Metadata      ii) ResultSet Metadata     iii) Data Types iv) Exceptions
                                               ****************