Advanced Java – BCS613D
Module – 1
1. What is collection framework? Explain the methods defined by the following interfaces:
i) Collection ii) List iii) Navigable Set iv) Queues. With sample Program (*
2. 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. Write a comparator program to sort accounts by last name. (*)
3. Discuss the various methods provided by the Array class in Java. Illustrate the usage of
these methods with a suitable example program.
4. What are legacy classes? Explain any four legacy classes of java's collection framework
with suitable programs.(*
5. Describe the concept of Spliterators in Java. Enumerate the key methods provided by
Spliterator interface. Illustrate the usage of Spliterators with a suitable example.
6. Create a class STUDENT with two private members: USN, Name using LinkedList class
in Java. Write a program to add at least 3 objects of above STUDENT class and display
the data.
7. Demonstrate ArrayList class collection with example.
8. Explain how collections can be accessed using an iterator with example.
9. Explain the following map classes:
i) HashMap ii) TreeMap.
10. Demonstrate a linked list for collections with an example
11. Explain the working of Binary search, with an algorithm and a program as an example
12. List the recent changes made to the collection in collection frameworks and Explain.
Module -2
1. List and explain the various String comparison methods with examples.(**)
2. Write a program to remove duplicate characters from a given String and display the
String.(**)
3. What is String in Java? Write a Java program that demonstrates any six constructors of
String class.(*)
4. Explain the following methods of StringBuffer class: (*)
i) append (), ii) insert (), iii) reverse (), iv) replace (), v) substring ( )
(or)
Illustrate the use of StringBuffer methods: append(), insert(), reverse(), and delete() with
proper examples
5. Differentiate between String, StringBuffer, and StringBuilder classes with focus on
mutability, performance, and thread safety.(5M)
6. Demonstrate the usage of the string modification methods in java with an example each.
(5M)
7. Explain the usage of indexOf() and lastIndexOf() methods with one example each.(5M)
8. Explain character extraction functions in string class.
9. Explain constructors in Java string builder class.
10. Explain the different types of string constructors with example
11. What are the methods to modify a string with an example, explain any 6
12. Explain string buffer in detail
13. Explain Ex String Builder and the following functions
a). Capacity b). Length
14. Explain Special String Operations, Character Extraction, String Comparison, Searching
Strings, Modifying a String in detail
Module – 3
1. Discuss the functionality of the four commonly used buttons in Java Swing. Illustrate
each with a suitable example. (BCS613D-MODEL Paper)
2. Describe the MVC Connection. How is this design pattern implemented in Java Swing
applications? (BCS613D-MODEL Paper)
3. Elaborate the concept of painting in Java Swing. Illustrate your explanation with a
suitable example program. (BCS613D-MODEL Paper)
4. What is Java Swing? Discuss the evolution of Java Swing and explain its key features.
(BCS613D-MODEL Paper) (or) Explain the key features of Swing with a sample
program. (BIS402 – MODEL Paper)
5. Explain the following swing components with an example program: i) JLabel ii)
JTextField iii) JScrollPane iv) JTable (BCS613D-MODEL Paper)
6. Write a program to demonstrate icons representing timepiece using JButton and
JToggleButton. When the button is pressed, name of that timepiece in the label. (BIS402
– MODEL Paper)
7. Write a program to create a frame for a simple arithmetic calculator using swing
components and layout mangers. (BIS402 – MODEL Paper)
8. Explain the event handling mechanism used by Swing with an example program.
(BIS402 – MODEL Paper).
9. Explain the difference between AWT and Swing. What are two key features of swing and
explain. (BIS402 – Final Paper)
10. What is JLabel class? Explain with example of any three constructors and methods of
JLabel class. (BIS402 – Final Paper)
11. Write a Java program in swing event handling applications that creates 2 buttons ALPHA
and BETA and displays the text “Alpha pressed” when Alpha button is clicked and “Beta
pressed” when beta button is clicked. (BIS402 – Final Paper)
12. What is JPanel class? Explain the constructors of JPanel class and give a suitable
example. (BIS402 – Final Paper)
What is JCheckBox class? Explain the constructors of JCheckBox class and give a
suitable example. (BIS402 – Final Paper)
13. What is JFrame class? Explain constructors and methods of JFrame class. (BIS402 –
Final Paper)
14. Explain the origin of Swing and how it builds upon the Abstract Window Toolkit (AWT).
Discuss the advantages that Swing offers over AWT and provide examples of how Swing
components enhance or replace AWT components. (SIMP-TIE)
15. Discuss the Model-View-Controller (MVC) architecture and its implementation in Swing
components. Provide an example to illustrate how the MVC pattern is used in a typical
Swing component. (SIMP-TIE)
16. Describe the role of components and containers in the Swing framework wrt GUI,
explain with an example of a Swing application that demonstrates the use of various
components and containers. (SIMP-TIE)
17. List and explain the primary Swing packages and their purposes. (SIMP-TIE)
18. Discuss how event handling is implemented in Swing. Explain the role of listeners in
handling user actions. (SIMP-TIE)
19. Explore the JLabel and JTextField components in Swing. How are these components used
to display text and receive user input? explain how ImageIcon is used with JLabel to
display images in a GUI. (SIMP-TIE)
Module-4
1. List and explain the core classes and interfaces in javax.servlet package.(BIS402 –
MODEL Paper)
2. Write a java servlet program to accept two parameters from webpage, find the sum of
them and display the result in the webpage. Also give necessary html script to create
webpage. (BIS402 – MODEL Paper)
3. Explain different JSP tags with a program to demonstrate all tags. (BIS402 – MODEL
Paper)
4. Explain the Life Cycle of Servlets with a neat diagram. Example (BIS402 – MODEL
Paper), (SIMP-TIE), (BCS613D-MODEL Paper), (BIS402 – Final Paper)
5. What are cookies? Write a program to create cookie with name “User name” and value:
“xyz”. Also display stored cookie in webpage. (BIS402 – MODEL Paper), (BIS402 –
Final Paper)
6. Define JSP and explain the following: i) Tags ii) Variables iii) Objects (BCS613D-
MODEL Paper)
7. Elaborate on session tracking with an example (BCS613D-MODEL Paper)
8. Describe all the interface and classes present in the jakarta.servlet Package (BCS613D-
MODEL Paper), (SIMP-TIE)
9. Explain any 2 cookie methods and elaborate on how cookies can be handled in servlets.
(BCS613D-MODEL Paper)
10. Explain different JSP tags with a program to demonstrate all tags (SIMP-TIE), (BIS402
– Final Paper)
11. What are cookies, explain how cookies are handled in JSP. Write a program to create
with the name “Dr Kishor GR '' and cookie value “XYZ '', also display stored cookies on
the web page (SIMP-TIE)
What is the JSP tag? Explain different types of JSP tags (SIMP-TIE), (BIS402 – Final
Paper)
12. Explain the role of the tomcat server, explain different steps in configuring for the
development of servlet program execution (SIMP-TIE)
13. Explain how to use the JavaScript sessionStorage to store data only for a session (SIMP-
TIE)
Module -5
1. Elaborate on the concepts of JDBC and discuss the types of JDBC drivers. (BCS613D-
MODEL Paper)
2. Explain the steps involved in associating the JDBC-ODBC bridge with a database using
the ODBC Data Source Administrator (BCS613D-MODEL Paper)
3. Give a brief overview on how JDBC process. (BCS613D-MODEL Paper)
4. Discuss the following with respect to JDBC
i) Metadata ii) ResultSet Metadata iii) Data Types iv) Exceptions (BCS613D-MODEL
Paper)
5. What is statement object in JDBC? Explain the following statement objects
i) Callable statement object ii) Prepare statement object (BIS402 – MODEL Paper)
6. Explain transaction processing in JDBC. (BIS402 – MODEL Paper)
7. Write any two syntax of establishing a connection to database. (BIS402 – MODEL
Paper)
8. Explain the four types of JDBC drivers. (BIS402 – MODEL Paper)
9. Explain connection pooling with neat diagram and code snippets. (BIS402 – MODEL
Paper)
10. . List and explain various JDBC driver types, also explain the types of exceptions in
JDBC (SIMP-TIE)
11. Explain the basic steps involved in database connection (SIMP-TIE)
12. Write a Java program to execute a database transaction (SIMP-TIE)
13. Explain (i)Callable statements (ii)Prepared statements (iii)Types of result sets (SIMP-
TIE)
14. Explain various statement objects in JDBC (SIMP-TIE)
15. Write a note on database metadata object methods and resultset metadata object methods
(SIMP-TIE)
16. What are database drivers? Explain the different JDBC driver types. (BIS402 – Final
Paper)
17. Describe the various steps of JDBC with code snippets. (BIS402 – Final Paper)
18. Write any two syntax of established a connection to a database. (BIS402 – Final Paper)
What is connection pooling? Explain connection pooling with a neat diagram with
snippets. (BIS402 – Final Paper)
19. Describe the following concepts:
i) Callable statement
ii) Transaction processing (BIS402 – Final Paper)