Advanced Java
Overview and Key Concepts
Introduction to Advanced Java
• Advanced Java includes features beyond core
Java (JSE).
• It mainly deals with web-based application
development using technologies such as:
• - Servlet
• - JSP
• - JDBC
• - RMI
• - Networking
Servlets
• Servlets are Java programs that run on a web
server and handle client requests.
• Key Features:
• - Platform Independent
• - Robust and Scalable
• - Used to create dynamic web pages
JSP (JavaServer Pages)
• JSP allows embedding Java code in HTML
pages.
• Benefits:
• - Easy to maintain
• - Combines HTML and Java
• - Ideal for presentation layer
JDBC (Java Database Connectivity)
• JDBC is an API for connecting and executing
queries with the database.
• Steps:
• 1. Load Driver
• 2. Establish Connection
• 3. Create Statement
• 4. Execute Query
• 5. Close Connection
RMI (Remote Method Invocation)
• RMI allows an object to invoke methods on an
object running in another JVM.
• Components:
• - Client and Server
• - Stub and Skeleton
• - RMI Registry
Networking in Java
• Java provides the java.net package for
networking applications.
• Common Classes:
• - Socket
• - ServerSocket
• - InetAddress