Advance Java Question Bank
Advance Java Question Bank
Course:- TYBBA-CA
2 Marks Questions
1. What is thread?
2. Explain the methods sleep() with suitable syntax
3. Explain statement of jdbc
4. Explain types of statement in jdbc
5. What is Driver? Explain with the suitable syntax
6. Explain the class DriverManager
7. Explain the method executeQuery() with syntax
8. Explain the method executeUpdate()with syntax
9. Explain the method next() with syntax
10. Explain runnable interface with syntax
11. Explain the method start of thread
12. Explain the declaration tag of JSP
13. Explain the doGet method of Servlet
14. Explain the doPost method of servlet
15. Explain Print Writer method with syntax
16. Explain the method setContentType() with
syntax
17. How to import packages in JSP . Discuss with
syntax
18. What is spring?
5 Marks Questions
1. Explain the life cycle of applet and also explain how to
implement the thread with applet? Give example
2. Explain Thread with class with suitable example
3. Explain the terms
i. Connection
ii. Statement
iii. Prepared Statement
iv. ResultSet
Write the syntax of each interface
7 Marks Questions
1. Write a java program to display the following
options to the end user
i. Display all record from the database
ii. Display the record using rollno only
iii. Display the record using name only
iv. Insert the record rollno and name
Accept the choice from user using reader class
and display the record according to the choice
given.
2. Write a java program to display the following
options to the end user
i. Display all the record
ii. Delete the record as per rollno
iii. Delete the record as per name
iv. Insert the record
Accept the choice from user and using
statement interface, display the output
according to the choice given
3. Write a java program to display the following
options to the end user
i. Update the rollno according to the name
ii. Update the name according to the rollno
iii. Delete the record as per rollno
iv. Delete the record as per name
Accept the choice from user and display the
result as per the choice given. Use statement
Interface
4. Write a java program to display the following
options to the end user
v. Display all record from the database
vi. Display the record using rollno only
vii. Display the record using name only
viii. Insert the record rollno and name
Accept the choice from user using reader class
and display the record according to the choice
given. Use prepared Statement
5. Write a java program to display the following
options to the end user
v. Display all the record
vi. Delete the record as per rollno
vii. Delete the record as per name
viii. Insert the record
Accept the choice from user and using
statement interface, display the output
according to the choice given. Use Prepared
Statement
6. Write a java program to create the swing
frame that consists of the two textfields , two
lebels and three buttons called INSERT,
DISPLAY and RESET. Accept the roll no and
name from user in two textfields and on click
of the insert button, insert the record into the
database and on click of the display button,
display the updated record on the command
prompt and on click of reset button, reset all
the textfields . Use prepared statement