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

Advanced Java InterviewQuetions

The document contains questions about advanced Java topics like J2EE components, JDBC, servlets, JSP, and JavaServer Pages Standard Tag Library. It includes over 80 questions on these Java technologies covering concepts like containers, MVC architecture, database connectivity, sessions, request handling, and templating with JSP.

Uploaded by

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

Advanced Java InterviewQuetions

The document contains questions about advanced Java topics like J2EE components, JDBC, servlets, JSP, and JavaServer Pages Standard Tag Library. It includes over 80 questions on these Java technologies covering concepts like containers, MVC architecture, database connectivity, sessions, request handling, and templating with JSP.

Uploaded by

sindhu991994
Copyright
© © All Rights Reserved
Available Formats
Download as RTF, PDF, TXT or read online on Scribd
You are on page 1/ 4

Advanced Java Interview Questions

1. What are the components of J2EE applications?

2. What are the J2EE client types?

3. What is a J2EE container?

4. What are defined as web components?

5. Describe the MVC on struts?

6. Define JSF?

7. What is Hashtable?

8. Explain the different ways of using thread?

9. What is the difference between ArrayList and vector?

10. What is HashMap and Map?

11. Difference between HashMap and HashTable?

12. Difference between Vector and ArrayList?

13. What is the difference between multiple processes and multiple threads?

14. What if the static modifier is removed from the signature of the main method?

15. Can I have multiple main methods in the same class?

16. What is JDBC?

17. What are the steps to connect to the database in java?

18. What are the JDBC API components?

19. What are the JDBC statements?

20. What is the return type of Class.forName() method?

21. What are the differences between Statement and PreparedStatement interface?

22. How can we set null value in JDBC PreparedStatement?

23. What are the differences between execute, executeQuery, and executeUpdate?

24. What are the differences between ResultSet and RowSet?


25. What is the role of the JDBC DriverManager class?

26. What are the functions of the JDBC Connection interface?

27. What does the JDBC ResultSet interface?

28. What does the JDBC ResultSetMetaData interface?

29. What does the JDBC DatabaseMetaData interface?

30. Which interface is responsible for transaction management in JDBC?

31. What is batch processing and how to perform batch processing in JDBC?

32. What are CLOB and BLOB data types in JDBC?

33. What are the different types of lockings in JDBC?

34. How can we store and retrieve images from the database?

35. What are the differences between stored procedure and functions?

36. How can we maintain the integrity of a database by using JDBC?

37. What is the major difference between java.util.Date and java.sql.Date data type?

38. What is the JDBC Rowset?

39. What does JDBC setMaxRows method do?

40. Can you explain the life cycle of a Java Servlet?

41. What is the difference between ServletConfig and ServletContext?

42. Can you explain the role of the HTTPServlet and GenericServlet classes?

43. How would you efficiently manage client sessions in Java Servlets?

44. What is the significance of the init() method in Java Servlets?

45. How do you communicate between two Servlets?

46. Explain the use of RequestDispatcher and its methods

47. How would you implement filter in Java Servlets?

48. Describe how you would handle form data in a Servlet.

49. How do you differentiate between doPost() and doGet() methods?


50. In what situation would you use the sendRedirect() method in a Java Servlet?

51. How do you set priorities for servlets in web.xml?

52. Can you explain the difference between forward() and sendRedirect() methods?

53. How would you prevent a servlet from being loaded at startup?

54. Can you explain the role and use of cookies in a Servlet?

55. What is the importance and use of the SingleThreadModel interface?

56. How would you pass initialization parameters to a servlet?

57. What is the role of listeners in Java Servlets?

58. How do you handle exceptions in servlets?

59. What is servlet chaining and how is it achieved?

60. What is the role and use of event objects in Java Servlets?

61. Can you explain the difference between a stateless and stateful servlet?

62. How do you manage and handle file uploads using Java Servlets?

63. Can you illustrate how to implement server push using servlets?

64. What is JSP?

65. What are the life-cycle methods for a JSP?

66. List out some advantages of using JSP.

67. Give the syntax for JSP comments.

68. What is the difference between hide comment and output comment?

69. What are the JSP implicit objects?

70. What is the difference between include directive and include action?

71. Is JSP technology extensible?

72. How can I prevent the output of my JSP or Servlet pages from being cached by the browser?

73. (OR) How to disable caching on the back button of the browser?

74. How can we handle the exceptions in JSP?


75. How can we forward the request from JSP page to the servlet?

76. Can we use the exception implicit object in any JSP page?

77. What are the different scope values for the <jsp:useBean> tag?

78. What do JSP literals consist of?

79. What is the purpose of <jsp:setProperty >?

80. What is the purpose of <jsp:getProperty >?

81. List out the various scope values of JSP action.

82. What is the use of 'out' implicit object?

83. Give the use of session object.

84. What is the difference between ServletContext and PageContext?-

85. What is JSTL?

86. Explain various implicit objects in expression language.

You might also like