Adv Java Question Bank On All Chapters
Adv Java Question Bank On All Chapters
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
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