0% found this document useful (0 votes)
10 views5 pages

Module-1-5 QB-BIS402

The document is a question bank for the Advanced Java course (BIS402) for the academic year 2023-2024 at Acharya Institute of Technology. It includes various modules covering topics such as Java Collections, String manipulation, GUI programming with Swing and AWT, Servlets and JSP, and JDBC. Each module contains multiple questions designed to test students' understanding and application of these concepts.

Uploaded by

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

Module-1-5 QB-BIS402

The document is a question bank for the Advanced Java course (BIS402) for the academic year 2023-2024 at Acharya Institute of Technology. It includes various modules covering topics such as Java Collections, String manipulation, GUI programming with Swing and AWT, Servlets and JSP, and JDBC. Each module contains multiple questions designed to test students' understanding and application of these concepts.

Uploaded by

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

AIT/IQAC/Aca/23-24/IAQP

ACHARYA INSTITUTE OF TECHNOLOGY


BENGALURU 560107
QUESTION BANK - I [Academic Year: 2023-2024]
ADVANCED JAVA (BIS402)

MODULE 1
SI No Questions
1. What is a collection framework? Explain the method defined by collection interface.
2. Explain the method defined by List Iterator interface with an example.
3. Explain the constructor of ArrayList. Write a java program that demonstrate ArrayList can be used
to insert and remove a string.
4. Explain the constructor of HashSet class. Write a program to create a HashSet collection and access
via Iterator.
5. Explain why we need a Generic collection.
6. Explain the method defined by list Iterator Interface
7. Explain the constructor of TreeSet class. Write a program to create a TreeSet collection.
8. Demonstrate LinkedList of collections with examples.
9. Discuss the exceptions and methods in Map Interface.
10. Explain Vector class with an example program.
11. Write the syntax declaration of Queue Interface and explain any four methods defined by queue.
12. Explain four legacy classes of java collection Framework with suitable program.
13. Illustrate various methods defined by List Iterator interface with an example
14. Explain Queue interface. List and explain different methods available in queue with an
example.
15. Explain how collection can be accessed using iterator.
16. What are comparator? Write a comparator program to sor the accounts by last name.
17. Explain ArrayList class and explain the following methods.
i) binarysearch ii) copy iii) equal iv) fill
18. Write a java program to explain Linked list to store address.
19. Create a class EMPLOYEE with two private string member : e_name and e_id. Use
LinkedList class to develop a a java program to add atleast 3 object of above EMPLOYEE
class and display the data in neat format.
20. How to access collection :
i) Using an Iterator ii) using for-each loop
Explain each with an example program.
21. Create a class STUDENT with two private string member : USN and NAME. Use
LinkedList class to develop a a java program to add atleast 3 object of above STUDENT class
and display the data in neat format.

Department of Information Science and Engineering, Acharya Institute of Technology, Bangalore-560107 1


AIT/IQAC/Aca/23-24/IAQP
ACHARYA INSTITUTE OF TECHNOLOGY
BENGALURU 560107
QUESTION BANK - I [Academic Year: 2023-2024]
ADVANCED JAVA (BIS402)

Module 2
SI No Questions
1. Explain String in Java and Write a java program that demonstrates any four String class.
2. Discuss Character Extraction? Explain any two character extraction methods of String class.
3. Distinguish between equals( ) and == with respect to String Comparison.
4. Explain any four String modification methods of String class.
5. Demonstrate between String , StringBuffer and StringBuilder class.
6. Write a program in java to replace all the matching substring with a given string.
7. Illustrate compareTo() methods differ from compareToIgnoreCase() method ? Explain with
an example program.
8. Write a program to remove duplicate characters from a given string and display the resultant
string.
9. Explain String Searching with syntax and example.
10. Explain the following methods of StringBuffer class:
(i) capacity( ) (ii) reverse( ) (iii) chatAt( ) (iv) deleteCharAt()
11. Explain the syntax and example program of Data Conversion Using valueOf( ) .
12. Explain the following methods of StringBuffer method with example:
(i) append (ii) insert (iii) replace (iv) length v) delete
13. Explain with syntax and example the different constructor available for creating string.
14. Explain the following with syntax and example
i)equals() ii) equalIgnoreCase() iii) regionMatches() iv) toCharArray()
15. Explain the different method of String Buffer class.
16. Explain the following with syntax and example
i)startWith() ii) endsWith() iii) getBytes() iv) getChars( )
17. Implement a java program to illustrate the count of numbers of vowels and consonants available
in the given string “Department of Information Science and Engineering, Acharya Institute of
Technology”.
18. Implement a java program to illustrate the use of different types of character extraction, string
comparison, string search and string modification methods.
19. Explain the String comparison functions with suitable programs.
20. Write a java program to replace all the matching substring with a given string
21. Develop a java Program to count the occurance of character in a given string.

Module 3
Department of Information Science and Engineering, Acharya Institute of Technology, Bangalore-560107 2
AIT/IQAC/Aca/23-24/IAQP
ACHARYA INSTITUTE OF TECHNOLOGY
BENGALURU 560107
QUESTION BANK - I [Academic Year: 2023-2024]
ADVANCED JAVA (BIS402)
SI No Questions
1. Discuss about Swing and AWT.
2. Illustrate the various GUI API thats contains classes with an hierarchy diagram.
3. Explain Container Class and discuss any five container class with an example program.
4. Discuss the features of swing in details.
5. Explain component and implement any five component in frame.
6. Illustrate Layout manager and its properties with an example program.
7. Explain the following with and example program:
i) GridLayout ii) BorderLayout iii)
8. Implement the ImageIcon,
9. Which class is the root of the Java GUI component classes?
10. Explain the difference between AWT GUI components, such as java.awt.Button,
and Swing components, such as javax.swing.JButton
11. Why do you need to use layout managers? What is the default layout manager for
a frame? How do you add a component to a frame
12. Describe FlowLayout. How do you create a FlowLayout manager? How do you
add a component to a FlowLayout container? Is there a limit to the number of
components that can be added to a FlowLayout container?
13. Describe GridLayout. How do you create a GridLayout manager? How do you
add a component to a GridLayout container?
14. Using the BorderLayout manager Rewrite the preceding program to create
the same user interface, but instead of using FlowLayout for the frame, use
BorderLayout. Place one panel in the south of the frame and the other in the
center.
15. Write a program that displays four lines of text in four labels, as shown below:

16. Illustrate Model-View-Controller Architecture and How do you do implement models, views,
and controllers in swing.
17. Implement the following in a swing program
JCombobox , JList,
18. What are the three list-selection modes? Wring a swing program to implement JList to
obtain the selected item(s).

Department of Information Science and Engineering, Acharya Institute of Technology, Bangalore-560107 3


AIT/IQAC/Aca/23-24/IAQP
ACHARYA INSTITUTE OF TECHNOLOGY
BENGALURU 560107
QUESTION BANK - I [Academic Year: 2023-2024]
ADVANCED JAVA (BIS402)
Module 4
SI No Questions
1. Illustrate servlet life cycle with an example.
2. Write a java servlet program to accept two parameters from webpage find sum of them,
display the result in web page. Also give necessary html script to create web page
3. What is role of tomcat server? Explained different steps involved in configuration of
development of servlet program execution.
4. Illustrate cookies. Write a servlet program to add a cookie.
5. Describe the core interface that are provided in Jakarta.Servlet.http package.
6. Develop a code snippet, explain how session tracking is handled in java with servlets.
7. Write a java servlet program to accept two parameters from webpage, find the division of
them, display the result in webpage. Also give necessary HTML script to create web page.
8. Develop a servlet program to read all parameters.
9. Illustrate JSP? Develop the JSP program with various JSP tags.
10. Explain any two types of control statement use in JSP by taking suitable examples.
11. Develop a JSP program to create and read cookies called “USER_ID” that has a value of
KA5621.
12. Write a java servlet program that demonstrate how parameter can accesseded from HTML
13. What is session object? Write a program to create and read session object using JSP.
14. Explain the difference between servlet and JSP.
15. Difference between JSP declaration tag and JSP scriplet tag.
16. Design a JSP program to check whether user entered number is odd or even.
17. Design a JSP program to check whether user entered year is leap or not.

Department of Information Science and Engineering, Acharya Institute of Technology, Bangalore-560107 4


AIT/IQAC/Aca/23-24/IAQP
ACHARYA INSTITUTE OF TECHNOLOGY
BENGALURU 560107
QUESTION BANK - I [Academic Year: 2023-2024]
ADVANCED JAVA (BIS402)
Module 5
SI No Questions
1. Describe the various steps of JDBC with code snippets.
2. Apply the JDBC concept and explain the following
i) Callable Statement Object ii) Prepared Statement Object
3. Illustrate the Database drivers? Explain different types of JDBC drivers.
4. Discuss various statement objects in JDBC.
5. Apply JDBC concept to develop a java program to connect to database with the following
information
Driver: JDBC/ODBC bridge
URL: “jdbc.odbc:Ex”
Username: Acharya
Password: 56215
Retrieve all the rows with marks >75
Assume the following table:
Table name : STUDENT
Fields: USN Varchar(20) , Marks int, Name Varchar(25)
6. Discuss Database Metadata objet method and ResultSet metadata object method .
7. Design a java program to execute database transaction.
8. Discuss JDBC multitier architecture with neat diagram.
9. Illustrate ResultSet with syntax? How to make ResultSet Scrollable.
10. List and illustrate the three different types of exception occurred in JDBC.
11. Discuss ResultSetMetaData and Design a JDBC Program to display table column count and
column type.
12. Discuss JDBC PreparedStatement object with JDBC program.
13. Explain the use of object in establishing the connection. Also write a program to call stored
procedure.
14. Describe the following:
i) Scrollable result set ii) callable statement
iii) Transaction processing iv) Updatable result set
15. Write any two syntax of established a connection to database.
16. List and explain three kinds of exceptions occurred in JDBS.
17. List and explain various statement object in JDBC.
18. Discuss ResultSetMetaData and design JDBC program to display table column count and
column type.

Department of Information Science and Engineering, Acharya Institute of Technology, Bangalore-560107 5

You might also like