ADVANCED JAVA
PRESENTED BY:-XYZ
Content
Why Advanced Java?
What is Web Applications.
What is JDBC ?
JDBC Connection.
Servlet
Servlet Life Cycle.
JSP
JSP Life Cycle.
Why Advanced Java?
Advance Java is technology used for dynamic Web site creation,
networking & database handling.
The main difference between Core Java and Advanced Java is that
the Core Java is used to build general applications while
the Advanced Java is used to build enterprise level applications.
So "Advanced Java" is nothing but specialization in domains such as
web, networking, database handling.
Web Applications
The Application which are executing in web
environment & internet environment are known as
web applications.
To develop these web applications we use the
following technologies:-
1) JDBC: Java Database Connectivity
2) Java Servlets
3) JSP : Java Server Pages
JDBC
JDBC is used to control and manage Databases.
It provides classes and interfaces to connect or communicate
Java application with database.
JDBC API is a Java API that can access any kind of data stored in a
Relational Database.
It enables Java programs to execute SQL statements.
JDBC use JDBC drivers to established communication between Java
application and database.
JDBC Connection
When a Java application needs a database connection, one of
the DriverManager.getConnection() methods is used to create a JDBC
connection.
SERVLET
The servlet programs will extends the functionality of web servers in
the process of interacting with end users through web-browser.
The process of writting servlet programs is known as servlet
programming.
In the process of constructing servlet program , the servlet class must
be extended from:-
1) javax.servlet.GenericServlet
2) javax.servlet.HttpServlet
Servlet Life Cycle
Servlet Example
Using Servlets, you can collect input from users through web page
forms, present records from a database or another source, and create
web pages dynamically.
JSP
JSP is a tag based programming technique ,because
of this reason jsp is more simple when compared to
servlet programming.
JSP program is combination of both HTML code &
Java Code.
We use JSP to write Java code(servlet code) part of
JSP program.
JSP Life Cycle
THANK YOU