Advanced Java

  1. Home
  2. »
  3. Advanced Java

Advanced Java

  • JDBC (JAVA DATABASE CONNECTIVITY)
  • SERVLETS
  • JSP
  • ADVANCED JAVA INTERVIEW QUESTIONS

Topics Covered

Advanced Java

JDBC (JAVA DATABASE CONNECTIVITY)

  • Introduction to JDBC
  • Types of Drivers
  • Steps to connect with database
  • Statement, PreparedStatement, CallableStatement
  • ResultSet
  • Batch Processing
  • Transaction Management
  • ResultSetMetaData
  • DatabaseMetadata

SERVLETS

  • Introduction to Servlets
  • Web application architecture
  • Ways to create Servlet
  • implementing Servlet interface
  • extending Generic Servlet
  • extending HTTP Servlet
  • Servlet life cycle
  • Explanation of web.xml (deployment descriptor file)
  • Steps to create first web application
  • Servlet Config
  • Servlet Context
  • Request Dispatcher
  • Send Redirect
  • Session Tracking
  • Filters
  • Registration page using Servlets
  • Servlet with database

JSP (JavaServer Pages)

  • Introduction to jsp
  • Limitations of Servlets
  • Jsp life cycle
  • Jsp scripting elements
  • Jsp directive elements
  • Jsp implicit objects
  • Jsp action elements
  • Jsp custom tags
  • Jsp file uploading and downloading
  • Development in jsp
  • Jsp with database

ADVANCED JAVA INTERVIEW QUESTIONS​

JDBC

  • What is JDBC?
  • What is JDBC Driver?
  • What are the steps to connect to the database in Java?
  • What are the JDBC API components?
  • What are the JDBC statements?
  • What is the difference between Statement and PreparedStatement interface?
  • How can we execute stored procedures and functions?
  • What is the role of JDBC DriverManager class?
  • What does the JDBC Connection interface do?
  • What does the JDBC ResultSet interface do?
  • What does the JDBC ResultSetMetaData interface do?
  • What does the JDBC DatabaseMetaData interface do?
  • Which interface is responsible for transaction management in JDBC?
  • What is batch processing and how to perform batch processing in JDBC?
  • How can we store and retrieve images from the database?

SERVLETS

  • How many objects of a servlet are created?
  • What is the life-cycle of a servlet?
  • What are the life-cycle methods for a servlet?
  • Who is responsible for creating the object of a servlet?
  • When is a servlet object created?
  • What is the difference between Get and Post methods?
  • What is the difference between PrintWriter and ServletOutputStream?
  • What is the difference between GenericServlet and HttpServlet?
  • What is servlet collaboration?
  • What is the purpose of the RequestDispatcher Interface?
  • Can you call a JSP from the servlet?
  • What is the difference between the forward() method and sendRedirect() method?
  • What is the difference between ServletConfig and ServletContext?
  • What is session tracking?
  • What are cookies?
  • What is the difference between cookies and HttpSession?
  • What is a filter?
  • How can we perform any action at the time of deploying the project?
  • What is the disadvantage of cookies?
  • How can we upload a file to the server using a servlet?
  • What is load-on-startup in servlet?
  • What happens if we pass a negative value in load-on-startup?
  • What are the annotations used in Servlet 3?
  • What is the use of welcome-file-list?