0% found this document useful (0 votes)
15 views

Adv Java Question Bank On All Chapters

Adv java question bank

Uploaded by

Vrushali Barhate
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
15 views

Adv Java Question Bank On All Chapters

Adv java question bank

Uploaded by

Vrushali Barhate
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 3

Advance Java Programming Question Bank

Unit 1 Collection framework


1. What is Collection Framework in Java?
2. Explain various interfaces use in Collection Framework. Also write details about HashMap
class with example.
3. What is ArrayList? Explain with an example.
4. What is LinkedList? Explain with an example.
5. Write the differences between ArrayList and Vector.
6. What is Vector? Explain with example
7. Explain Stack with its operations and example.
8. Explain TreeSet with example.
9. Explain LinkedHashSet with an example.
10. Write the differences between HashSet and LinkedHashSet.
11. Explain HashMap, LinkedHashMap and TreeMap with example.
12. Explain Map.Entry interface with its methods and example.
13. Create class ColorArrayList to add different colors also display them using Iterator
14. Create class ProductLinkedList to add different products also display them using Iterator.
15. Create class Product to accept different details like pname ,price. Also create class Product
Vector to display all books and accept book name from user and display its details using
enumeration.

Unit 2 Multithreading
16. What is Thread in Java?
17. What is Multithreading in Java? What are the benefits of using Multithreading?
18. What are the two ways of implementing threads in Java?
19. Explain in details thread lifecycle and priority of threads.
20. What is the difference between a thread and a process?
21. What is Thread Class in Java . Explain way to use Multithreading.
22. What do you understand about Thread Priority?
23. What is synchronization in multithreading, and why is it important?
24. What is inter-thread communication? How does thread communicate with each other?
25. What is Thread Scheduler and Time Slicing?
26. List out the differences between wait() and sleep() method.
27. Explain use of sleep() , notify() and join() in multithreading.
Advance Java Programming Question Bank

Unit 3 Database Programming


28. What is JDBC? Explain types of JDBC drivers.
29. What are the JDBC API components?
30. Explain the JDBC Architecture?
31. What are the steps to connect to a database using JDBC?
32. What is ResultSet? What are the types of ResultSet?
33. What are the types of statement? Explain in detail its methods.
34. What is PreparedSatement? Explain with example .
35. What is the difference between execute, executeQuery, executeUpdate?
36. What is ResultsetMetaData and DatabaseMetaData?
37. Explain the types of ResultSet and concurrency of resultset.

Unit 4 Web Applications

38. What is Servlet? List and Explain various stages of Servlet life cycle. Explain role of web
container.
39. Differentiate doGet() vs doPost()
40. Explain various directives used in JSP.
41. What is Cookie and how does it will use with web application in Java.
42. What is Servlet ? Differnece between HttpServlet and Generic Servlet with example.
43. Write a Servlet program using doPost() to enter two numbers and find maximum among
them.
44. Explain Methods of HttpServletRequest with appropriate example.
45. What is Session? Why we require Session? List the different ways to manage the session.
46. What is Cookie? What does the cookie contains? Explain methods of Cookie class.
47. Write a Servlet program for Session Management using Cookie.
Advance Java Programming Question Bank

48. Explain Session Management using HttpSession.


49. Write a Servlet program which retrieves record from database.
50. Servlet is Java class. Then why there is no constructor in Servlet? Justify your answer.
51. What is Session? Explain various Session tracking mechanisms in servlet with example.
52. List and Explain various stages of JSP life cycle. Briefly give the function of each phase.
53. Compare JSP with Servlet.
54. Explain JSP Scripting Elements with appropriate example.
55. Explain JSP Page Directives with appropriate example.
56. Explain all the Attributes of Page Directive.
57. Explain JSP implicit objects with appropriate example.
58. Explain Exception Handling in JSP.
59. Explain life cycle of JSp.
60. Explain tags and directives of JSP.
61. Write a JSP program to retrieve record from database.
62. Write a JSP program to display the details of patient (patient_no, patient_name,
patient_address, patient_age, patient_diesease) in tabular form on browser.

Unit 5 Spring Framework


63. What is Spring Framework. Explain all modules in brief.
64. What is Spring Web MVC framework? List its key features with diagram.
65. What is Dependency Injection?
66. What is Spring IoC container?
67. What are the main modules of the Spring Framework?
68. Explain steps to create Spring MVC Framework project with example.

You might also like