SlideShare a Scribd company logo
JAVA CERTIFICATION TRAINING www.edureka.co/java-j2ee-soa-training
JAVA CERTIFICATION TRAINING www.edureka.co/java-j2ee-soa-training
01 Introduction To Advanced Java
02 Introduction to J2EE & JDBC
03 JDBC Fundamentals
04 Steps to create Application
05 JDBC Driver Types
06 JDBC Connections
07 JDBC Statements
Topics For Today’s Discussion
JDBC
JAVA CERTIFICATION TRAINING www.edureka.co/java-j2ee-soa-training
01 Introduction To Advanced Java
02 Introduction to J2EE & JDBC
03 JDBC Fundamentals
04 Steps to create Application
05 JDBC Driver Types
06 JDBC Connections
07 JDBC Statements
Topics For Today’s Discussion
01 Introduction To Servlets
02 Servlet Life Cycle
03 Steps to create Servlet
04 Session Tracking
05 Introduction to Cookies
06 Useful methods of Cookie
07 Creating a cookie
JDBC
Servlets
JAVA CERTIFICATION TRAINING www.edureka.co/java-j2ee-soa-training
01 Introduction To Advanced Java
02 Introduction to J2EE & JDBC
03 JDBC Fundamentals
04 Steps to create Application
05 JDBC Driver Types
06 JDBC Connections
07 JDBC Statements
Topics For Today’s Discussion
01 Introduction To Servlets
02 Servlet Life Cycle
03 Steps to create Servlet
04 Session Tracking
05 Introduction to Cookies
06 Useful methods of Cookie
07 Creating a cookie
01 IntroductionTo JSP
02 JSP Life Cycle
03 Advantages of JSP vs Servlet
04 JSP Scripting Elements
JDBC Servlets
JSP
Introduction to
ADVANCED JAva
JAVA CERTIFICATION TRAINING www.edureka.co/java-j2ee-soa-training
Introduction To Advanced Java
Web & Enterprise Application
Client & Server Architecture
Servlets, Web, JSP, JDBC etc.
Next level Java Programming
J2se, j2ee, j2me
JAVA CERTIFICATION TRAINING www.edureka.co/java-j2ee-soa-training
✓ Used for developing desktop applications, forms
the core/base API.
✓ Helpful for client side standalone applications
Different Editions of Java
Java 2 Standard
Edition
J2SE
JAVA CERTIFICATION TRAINING www.edureka.co/java-j2ee-soa-training
✓ Used for client side
✓ Used for applications which run on servers, for
example web sites.
✓ Includes Servlets, Java Server Pages, Java
ServerFaces
J2EE
Different Editions of Java
J2SE
Java 2 Enterprise
Edition
JAVA CERTIFICATION TRAINING www.edureka.co/java-j2ee-soa-training
J2ME
J2EE
Different Editions of Java
J2SE
Java Development Kit
✓ JRE is the environment within which the JVM runs
✓ It contains a set of libraries + other files that JVM
uses at runtime
✓ Also called Java RTE
✓ Runs on resource constrained devices (small
scale devices) like cell phones, for example
games.
Java 2 Micro
Edition
Starting j2ee
JAVA CERTIFICATION TRAINING www.edureka.co/java-j2ee-soa-training
Java 2 Enterprise Edition
A platform Independent,
Java Centric environment
for developing, building &
deploying Web-based
applications online.
Simplifies the
complexity of building
n-tier Applications
Standardizes an API between
components and application
server container
J2EE application server and
container provide the
framework services
Why J2EE?
Introduction to
jdbc
JAVA CERTIFICATION TRAINING www.edureka.co/java-j2ee-soa-training
What is JDBC?
It is a standard Java API for database-independent connectivity between the Java
programming language and a wide range of databases.
Connection 01
Create SQL 02
Execute SQL 03
Viewing 04
JAVA CERTIFICATION TRAINING www.edureka.co/java-j2ee-soa-training
JDBC Architecture
JAVA CERTIFICATION TRAINING www.edureka.co/java-j2ee-soa-training
JDBC SQL Syntax
Drop table
Create table
Insert data
Create database
Drop database
SQL> CREATE DATABASE DATABASE_NAME;
JAVA CERTIFICATION TRAINING www.edureka.co/java-j2ee-soa-training
JDBC SQL Syntax
Drop table
Create table
Insert data
Create database
Drop database
SQL> DROP DATABASE DATABASE_NAME;
JAVA CERTIFICATION TRAINING www.edureka.co/java-j2ee-soa-training
JDBC SQL Syntax
Drop table
Create table
Insert data
Create database
Drop database
SQL> CREATE TABLE table_name ( column_name
column_data_type, column_name
column_data_type, column_name
column_data_type ... );
JAVA CERTIFICATION TRAINING www.edureka.co/java-j2ee-soa-training
JDBC SQL Syntax
Drop table
Create table
Insert data
Create database
Drop database
SQL> DROP TABLE TABLE_NAME;
JAVA CERTIFICATION TRAINING www.edureka.co/java-j2ee-soa-training
JDBC SQL Syntax
Drop table
Create table
Insert data
Create database
Drop database
SQL> INSERT INTO table_name VALUES
(column1, column2, ...);
JAVA CERTIFICATION TRAINING www.edureka.co/java-j2ee-soa-training
Steps to create a JDBC Application
Import the packages
Register Driver & Open Connection
Execute a Query
Extract data from result set
Clean up the environment
JDBC DRIVER
TYPES
JDBCODBC
BRIDGE
JDBCNATIVEAPI
JDBCNOTPURE
100%JAVAPURE
JAVA CERTIFICATION TRAINING www.edureka.co/java-j2ee-soa-training
JDBCODBC
BRIDGE
JDBCNATIVEAPI
JDBCNOTpure
JDBC ODBC DriverJDBCNETpure
100%Pure
Java
Local Computer
JavaApplicationsProprietary Vendor Specific
Protocol
Network Communication
Database Server
DB Vendor
Driver
JAVA CERTIFICATION TRAINING www.edureka.co/java-j2ee-soa-training
JDBCODBC
BRIDGE
JDBCNATIVEAPI
JDBCNOTpure
JDBC ODBC DriverJDBCNETpure
100%Pure
Java
Local Computer
JavaApplicationsProprietary Vendor Specific
Protocol
Network Communication
Database Server
DB Vendor
Driver
JAVA CERTIFICATION TRAINING www.edureka.co/java-j2ee-soa-training
JDBCODBC
BRIDGE
JDBCNATIVEAPI
JDBCNOTpure
JDBC ODBC DriverJDBCNETpure
100%Pure
Java
Local Computer
JavaApplications
Proprietary Vendor
Specific Protocol
Network Communication
Database Server
JDBC Type 1
JDBC Type 2
JDBC Type 3
Middleware Server
JAVA CERTIFICATION TRAINING www.edureka.co/java-j2ee-soa-training
JDBCODBC
BRIDGE
JDBCNATIVEAPI
JDBCNOTpure
JDBC ODBC Driver
JDBCNETpure
100%Pure
Java
Local Computer
JavaApplications
Proprietary Vendor Specific
Protocol
Network Communication
Database Server
JAVA CERTIFICATION TRAINING www.edureka.co/java-j2ee-soa-training
JDBC Connections
Create connection object
DB URL Formation
Close connection
Import JDBC Packages
Register JDBC Driver
import java.sql.* ; // for standard JDBC programs
import java.math.* ; // for BigDecimal and BigInteger support
JAVA CERTIFICATION TRAINING www.edureka.co/java-j2ee-soa-training
JDBC Connections
Create connection object
DB URL Formation
Close connection
Import JDBC Packages
Register JDBC Driver Approach I - Class.forName()
try {
Class.forName("oracle.jdbc.driver.OracleDriver");
}
catch(ClassNotFoundException ex) {
System.out.println("Error: unable to load driver class!");
System.exit(1);
}
JAVA CERTIFICATION TRAINING www.edureka.co/java-j2ee-soa-training
JDBC Connections
Create connection object
DB URL Formation
Close connection
Import JDBC Packages
Register JDBC Driver Approach II - DriverManager.registerDriver()
try {
Driver myDriver = new
oracle.jdbc.driver.OracleDriver();
DriverManager.registerDriver( myDriver );
} catch(ClassNotFoundException ex) {
System.out.println("Error: unable to load
driver class!");
System.exit(1);
}
JAVA CERTIFICATION TRAINING www.edureka.co/java-j2ee-soa-training
JDBC Connections
Create connection object
DB URL Formation
Close connection
Import JDBC Packages
Register JDBC Driver
RDBMS JDBC Driver Name URL
MYSQL com.mysql.jdbc.Driver
jdbc:mysql://hostname/
databaseName
Sybase com.Sybase.jdbc.SybDriver
jdbc:sybase:Tds:hostname: port
Number/databaseName
DB2
COM.ibm.db2.jdbc.net.DB2Driver
jdbc:db2:hostname:port
Number/databaseName
Oracle oracle.jdbc.driver.OracleDriver
jdbc:oracle:thin:@hostname:port
Number:databaseName
getConnection(String url)
getConnection(String url, Properties prop)
getConnection(String url, String user, String password)
JAVA CERTIFICATION TRAINING www.edureka.co/java-j2ee-soa-training
JDBC Connections
Create connection object
DB URL Formation
Close connection
Import JDBC Packages
Register JDBC Driver Using a Database URL with a username and password
Using Only a Database URL
Using a Database URL and a Properties Object
JAVA CERTIFICATION TRAINING www.edureka.co/java-j2ee-soa-training
JDBC Connections
Create connection object
DB URL Formation
Close connection
Import JDBC Packages
Register JDBC Driver
To ensure that a connection is closed, you could
provide a 'finally' block in your code
conn.close();
JAVA CERTIFICATION TRAINING www.edureka.co/java-j2ee-soa-training
JDBC Statements
Statement
Prepared
Statement
Callable
Statement
DEMO
Introduction to
Servlets
JAVA CERTIFICATION TRAINING www.edureka.co/java-j2ee-soa-training
What are Servlets?
Request
Response is generated at runtimeResponse is sent to client
Client Server
JAVA CERTIFICATION TRAINING www.edureka.co/java-j2ee-soa-training
What are Servlets?
Creates Web Application
Provides Interfaces & Classes
Must be implemented to create Servlet
Robust & Scalable
Deployed to create Web Page
Responds to any incoming requests
JAVA CERTIFICATION TRAINING www.edureka.co/java-j2ee-soa-training
Servlet Life Cycle
Handling Request
Loading &
Instantiation
Initialized
End
Start
Stop
init()
service()
destroy()
End of
Request
thread
JAVA CERTIFICATION TRAINING www.edureka.co/java-j2ee-soa-training
Steps to create a simple servlet
Create and compile servlet source code
Copy servlet class file & add mappings to web.xml file
Start Apache Tomcat
Start Web Browser & Request the Servlet
JAVA CERTIFICATION TRAINING www.edureka.co/java-j2ee-soa-training
Session Tracking in Servlets
Session tracking is a way to maintain state(data) of an user.
1. Request(new)
3. Second new request
2. Response
Client
Server
JAVA CERTIFICATION TRAINING www.edureka.co/java-j2ee-soa-training
Cookies
URL
rewriting
Hidden
form field
Http
session
JAVA CERTIFICATION TRAINING www.edureka.co/java-j2ee-soa-training
Cookies in Servlet
It is a small piece of information that is persisted between the multiple client requests.
1. Request
2. Request + Cookies
3. Response + Cookies
JAVA CERTIFICATION TRAINING www.edureka.co/java-j2ee-soa-training
Useful Methods of Cookie Class
public void setMaxAge(int expiry) Sets the maximum age of the cookies in seconds
public String getName() Returns the name of the cookie. Name cannot be changed after creation
public String getValue() Returns the value of the cookie
public void setName(String name) Changes the name of the cookie
public void setValue(String value) Changes the value of the cookie
JAVA CERTIFICATION TRAINING www.edureka.co/java-j2ee-soa-training
Creating & Deleting a Cookie
Deletion
Creation
1.Cookie ck=new Cookie("user",“Edureka");//creating cookie object
2.response.addCookie(ck);//adding cookie in the response
1.Cookie ck=new Cookie("user","");//deleting value of cookie
2.ck.setMaxAge(0);//changing the maximum age to 0 seconds
3.response.addCookie(ck);//adding cookie in the response
JAVA CERTIFICATION TRAINING www.edureka.co/java-j2ee-soa-training
Pros & Cons of Cookies
Useful & Easy Technique to maintain the state
Maintained at client side
Wont work if cookie is disabled form browser
Only textual information can be set in cookie object
Introduction to
jsp
JAVA CERTIFICATION TRAINING www.edureka.co/java-j2ee-soa-training
What is JSP?
It is used to create web application just like Servlet technology. Also called as extension of servlet
Fast Development
Tracking User
Easy to maintain
Portable
Powerful
Flexible
JAVA CERTIFICATION TRAINING www.edureka.co/java-j2ee-soa-training
Advantages of JSP over Servlets
JSP
Operation
Servlets
▪ Extension to Servlet ▪ It is not a extension of JSP
▪ No need to recompile and redeploy ▪ Code needs to be recompiled
▪ Less code than servlet ▪ More code comparatively
▪ Easy to maintain ▪ Bit complicated
JAVA CERTIFICATION TRAINING www.edureka.co/java-j2ee-soa-training
Life Cycle of JSP
Buffer
(dynamic content)
Servlet Object
JRE
JSP
Servlet (.java File)
Class file
Compiler
JSP Translator
JAVA CERTIFICATION TRAINING www.edureka.co/java-j2ee-soa-training
JSP Scripting Elements
<% java source code %>scriptlet
<%= statement %>expression
<%! field or method declaration %>declaration
Advance Java Tutorial | J2EE, Java Servlets, JSP, JDBC | Java Certification Training | Edureka
Ad

More Related Content

What's hot (20)

What is Docker Architecture | Edureka
What is Docker Architecture | EdurekaWhat is Docker Architecture | Edureka
What is Docker Architecture | Edureka
Edureka!
 
Java programming course for beginners
Java programming course for beginnersJava programming course for beginners
Java programming course for beginners
Eduonix Learning Solutions
 
Spring Boot Interview Questions | Edureka
Spring Boot Interview Questions | EdurekaSpring Boot Interview Questions | Edureka
Spring Boot Interview Questions | Edureka
Edureka!
 
Spring boot
Spring bootSpring boot
Spring boot
Pradeep Shanmugam
 
Java Spring
Java SpringJava Spring
Java Spring
AathikaJava
 
Kubernetes Concepts And Architecture Powerpoint Presentation Slides
Kubernetes Concepts And Architecture Powerpoint Presentation SlidesKubernetes Concepts And Architecture Powerpoint Presentation Slides
Kubernetes Concepts And Architecture Powerpoint Presentation Slides
SlideTeam
 
Spring Boot
Spring BootSpring Boot
Spring Boot
HongSeong Jeon
 
Asp.net validation
Asp.net validationAsp.net validation
Asp.net validation
Paneliya Prince
 
Introduction to Kubernetes Workshop
Introduction to Kubernetes WorkshopIntroduction to Kubernetes Workshop
Introduction to Kubernetes Workshop
Bob Killen
 
Java EE Introduction
Java EE IntroductionJava EE Introduction
Java EE Introduction
ejlp12
 
cours-gratuit.com--id-4422.pdf
cours-gratuit.com--id-4422.pdfcours-gratuit.com--id-4422.pdf
cours-gratuit.com--id-4422.pdf
lhoussainebouganfou
 
Microservices with Java, Spring Boot and Spring Cloud
Microservices with Java, Spring Boot and Spring CloudMicroservices with Java, Spring Boot and Spring Cloud
Microservices with Java, Spring Boot and Spring Cloud
Eberhard Wolff
 
OAuth2 and Spring Security
OAuth2 and Spring SecurityOAuth2 and Spring Security
OAuth2 and Spring Security
Orest Ivasiv
 
Postman Collection Format v2.0 (pre-draft)
Postman Collection Format v2.0 (pre-draft)Postman Collection Format v2.0 (pre-draft)
Postman Collection Format v2.0 (pre-draft)
Postman
 
Kubernetes Architecture | Understanding Kubernetes Components | Kubernetes Tu...
Kubernetes Architecture | Understanding Kubernetes Components | Kubernetes Tu...Kubernetes Architecture | Understanding Kubernetes Components | Kubernetes Tu...
Kubernetes Architecture | Understanding Kubernetes Components | Kubernetes Tu...
Edureka!
 
Spring Framework - Spring Security
Spring Framework - Spring SecuritySpring Framework - Spring Security
Spring Framework - Spring Security
Dzmitry Naskou
 
Spring Framework Petclinic sample application
Spring Framework Petclinic sample applicationSpring Framework Petclinic sample application
Spring Framework Petclinic sample application
Antoine Rey
 
Elements of Java Language
Elements of Java Language Elements of Java Language
Elements of Java Language
Hitesh-Java
 
Dependency injection
Dependency injectionDependency injection
Dependency injection
Mindfire Solutions
 
Understanding REST APIs in 5 Simple Steps
Understanding REST APIs in 5 Simple StepsUnderstanding REST APIs in 5 Simple Steps
Understanding REST APIs in 5 Simple Steps
Tessa Mero
 
What is Docker Architecture | Edureka
What is Docker Architecture | EdurekaWhat is Docker Architecture | Edureka
What is Docker Architecture | Edureka
Edureka!
 
Spring Boot Interview Questions | Edureka
Spring Boot Interview Questions | EdurekaSpring Boot Interview Questions | Edureka
Spring Boot Interview Questions | Edureka
Edureka!
 
Kubernetes Concepts And Architecture Powerpoint Presentation Slides
Kubernetes Concepts And Architecture Powerpoint Presentation SlidesKubernetes Concepts And Architecture Powerpoint Presentation Slides
Kubernetes Concepts And Architecture Powerpoint Presentation Slides
SlideTeam
 
Introduction to Kubernetes Workshop
Introduction to Kubernetes WorkshopIntroduction to Kubernetes Workshop
Introduction to Kubernetes Workshop
Bob Killen
 
Java EE Introduction
Java EE IntroductionJava EE Introduction
Java EE Introduction
ejlp12
 
Microservices with Java, Spring Boot and Spring Cloud
Microservices with Java, Spring Boot and Spring CloudMicroservices with Java, Spring Boot and Spring Cloud
Microservices with Java, Spring Boot and Spring Cloud
Eberhard Wolff
 
OAuth2 and Spring Security
OAuth2 and Spring SecurityOAuth2 and Spring Security
OAuth2 and Spring Security
Orest Ivasiv
 
Postman Collection Format v2.0 (pre-draft)
Postman Collection Format v2.0 (pre-draft)Postman Collection Format v2.0 (pre-draft)
Postman Collection Format v2.0 (pre-draft)
Postman
 
Kubernetes Architecture | Understanding Kubernetes Components | Kubernetes Tu...
Kubernetes Architecture | Understanding Kubernetes Components | Kubernetes Tu...Kubernetes Architecture | Understanding Kubernetes Components | Kubernetes Tu...
Kubernetes Architecture | Understanding Kubernetes Components | Kubernetes Tu...
Edureka!
 
Spring Framework - Spring Security
Spring Framework - Spring SecuritySpring Framework - Spring Security
Spring Framework - Spring Security
Dzmitry Naskou
 
Spring Framework Petclinic sample application
Spring Framework Petclinic sample applicationSpring Framework Petclinic sample application
Spring Framework Petclinic sample application
Antoine Rey
 
Elements of Java Language
Elements of Java Language Elements of Java Language
Elements of Java Language
Hitesh-Java
 
Understanding REST APIs in 5 Simple Steps
Understanding REST APIs in 5 Simple StepsUnderstanding REST APIs in 5 Simple Steps
Understanding REST APIs in 5 Simple Steps
Tessa Mero
 

Similar to Advance Java Tutorial | J2EE, Java Servlets, JSP, JDBC | Java Certification Training | Edureka (20)

10 J D B C
10  J D B C10  J D B C
10 J D B C
guest04b824
 
Introduction to Java Database Connectivity (JDBC)
Introduction to Java Database Connectivity (JDBC)Introduction to Java Database Connectivity (JDBC)
Introduction to Java Database Connectivity (JDBC)
Naresh IT
 
Fundamentals of JDBC
Fundamentals of JDBCFundamentals of JDBC
Fundamentals of JDBC
Jainul Musani
 
Java Servlets Tutorial | Introduction to Servlets | Java Certification Traini...
Java Servlets Tutorial | Introduction to Servlets | Java Certification Traini...Java Servlets Tutorial | Introduction to Servlets | Java Certification Traini...
Java Servlets Tutorial | Introduction to Servlets | Java Certification Traini...
Edureka!
 
jdbc Java Database Connectivity ujjwal matoliya jdbc.pptx
 jdbc Java Database Connectivity ujjwal matoliya jdbc.pptx jdbc Java Database Connectivity ujjwal matoliya jdbc.pptx
jdbc Java Database Connectivity ujjwal matoliya jdbc.pptx
ujjwalmatoliya
 
Chapter 5 JDBC.pdf for stufent of computer andtudent It s
Chapter 5 JDBC.pdf for stufent of computer andtudent  It sChapter 5 JDBC.pdf for stufent of computer andtudent  It s
Chapter 5 JDBC.pdf for stufent of computer andtudent It s
anuwaradisu19
 
jdbc
jdbcjdbc
jdbc
Gayatri Patel
 
chapter 5 java.pptx
chapter 5  java.pptxchapter 5  java.pptx
chapter 5 java.pptx
BekiTube
 
JDBC with MySQL.pdf
JDBC with MySQL.pdfJDBC with MySQL.pdf
JDBC with MySQL.pdf
Arumugam90
 
JDBC with MySQL.pdf
JDBC with MySQL.pdfJDBC with MySQL.pdf
JDBC with MySQL.pdf
Arumugam90
 
Java database connectivity with MySql
Java database connectivity with MySqlJava database connectivity with MySql
Java database connectivity with MySql
Dhyey Dattani
 
Java database connectivity with MySql
Java database connectivity with MySqlJava database connectivity with MySql
Java database connectivity with MySql
Dhyey Dattani
 
JDBC : Java Database Connectivity
JDBC : Java Database Connectivity JDBC : Java Database Connectivity
JDBC : Java Database Connectivity
DevAdnani
 
Advanced java online training in hyderabad
Advanced java online training in hyderabadAdvanced java online training in hyderabad
Advanced java online training in hyderabad
Madhu Trainer
 
435819601-Advanced-Java_Study About Java.pptx
435819601-Advanced-Java_Study About Java.pptx435819601-Advanced-Java_Study About Java.pptx
435819601-Advanced-Java_Study About Java.pptx
JPrince9
 
Introduction to advanced java
Introduction to advanced javaIntroduction to advanced java
Introduction to advanced java
kritikumar16
 
5 things about introduction to advanced java you have to experience it yourself.
5 things about introduction to advanced java you have to experience it yourself.5 things about introduction to advanced java you have to experience it yourself.
5 things about introduction to advanced java you have to experience it yourself.
kritikumar16
 
creating jdbc connection
creating jdbc connectioncreating jdbc connection
creating jdbc connection
Paneliya Prince
 
creating jdbc connection
creating jdbc connectioncreating jdbc connection
creating jdbc connection
Paneliya Prince
 
jdbc-130913021409-phpapp01000988www.pptx
jdbc-130913021409-phpapp01000988www.pptxjdbc-130913021409-phpapp01000988www.pptx
jdbc-130913021409-phpapp01000988www.pptx
ssuser8878c1
 
Introduction to Java Database Connectivity (JDBC)
Introduction to Java Database Connectivity (JDBC)Introduction to Java Database Connectivity (JDBC)
Introduction to Java Database Connectivity (JDBC)
Naresh IT
 
Fundamentals of JDBC
Fundamentals of JDBCFundamentals of JDBC
Fundamentals of JDBC
Jainul Musani
 
Java Servlets Tutorial | Introduction to Servlets | Java Certification Traini...
Java Servlets Tutorial | Introduction to Servlets | Java Certification Traini...Java Servlets Tutorial | Introduction to Servlets | Java Certification Traini...
Java Servlets Tutorial | Introduction to Servlets | Java Certification Traini...
Edureka!
 
jdbc Java Database Connectivity ujjwal matoliya jdbc.pptx
 jdbc Java Database Connectivity ujjwal matoliya jdbc.pptx jdbc Java Database Connectivity ujjwal matoliya jdbc.pptx
jdbc Java Database Connectivity ujjwal matoliya jdbc.pptx
ujjwalmatoliya
 
Chapter 5 JDBC.pdf for stufent of computer andtudent It s
Chapter 5 JDBC.pdf for stufent of computer andtudent  It sChapter 5 JDBC.pdf for stufent of computer andtudent  It s
Chapter 5 JDBC.pdf for stufent of computer andtudent It s
anuwaradisu19
 
chapter 5 java.pptx
chapter 5  java.pptxchapter 5  java.pptx
chapter 5 java.pptx
BekiTube
 
JDBC with MySQL.pdf
JDBC with MySQL.pdfJDBC with MySQL.pdf
JDBC with MySQL.pdf
Arumugam90
 
JDBC with MySQL.pdf
JDBC with MySQL.pdfJDBC with MySQL.pdf
JDBC with MySQL.pdf
Arumugam90
 
Java database connectivity with MySql
Java database connectivity with MySqlJava database connectivity with MySql
Java database connectivity with MySql
Dhyey Dattani
 
Java database connectivity with MySql
Java database connectivity with MySqlJava database connectivity with MySql
Java database connectivity with MySql
Dhyey Dattani
 
JDBC : Java Database Connectivity
JDBC : Java Database Connectivity JDBC : Java Database Connectivity
JDBC : Java Database Connectivity
DevAdnani
 
Advanced java online training in hyderabad
Advanced java online training in hyderabadAdvanced java online training in hyderabad
Advanced java online training in hyderabad
Madhu Trainer
 
435819601-Advanced-Java_Study About Java.pptx
435819601-Advanced-Java_Study About Java.pptx435819601-Advanced-Java_Study About Java.pptx
435819601-Advanced-Java_Study About Java.pptx
JPrince9
 
Introduction to advanced java
Introduction to advanced javaIntroduction to advanced java
Introduction to advanced java
kritikumar16
 
5 things about introduction to advanced java you have to experience it yourself.
5 things about introduction to advanced java you have to experience it yourself.5 things about introduction to advanced java you have to experience it yourself.
5 things about introduction to advanced java you have to experience it yourself.
kritikumar16
 
creating jdbc connection
creating jdbc connectioncreating jdbc connection
creating jdbc connection
Paneliya Prince
 
creating jdbc connection
creating jdbc connectioncreating jdbc connection
creating jdbc connection
Paneliya Prince
 
jdbc-130913021409-phpapp01000988www.pptx
jdbc-130913021409-phpapp01000988www.pptxjdbc-130913021409-phpapp01000988www.pptx
jdbc-130913021409-phpapp01000988www.pptx
ssuser8878c1
 
Ad

More from Edureka! (20)

What to learn during the 21 days Lockdown | Edureka
What to learn during the 21 days Lockdown | EdurekaWhat to learn during the 21 days Lockdown | Edureka
What to learn during the 21 days Lockdown | Edureka
Edureka!
 
Top 10 Dying Programming Languages in 2020 | Edureka
Top 10 Dying Programming Languages in 2020 | EdurekaTop 10 Dying Programming Languages in 2020 | Edureka
Top 10 Dying Programming Languages in 2020 | Edureka
Edureka!
 
Top 5 Trending Business Intelligence Tools | Edureka
Top 5 Trending Business Intelligence Tools | EdurekaTop 5 Trending Business Intelligence Tools | Edureka
Top 5 Trending Business Intelligence Tools | Edureka
Edureka!
 
Tableau Tutorial for Data Science | Edureka
Tableau Tutorial for Data Science | EdurekaTableau Tutorial for Data Science | Edureka
Tableau Tutorial for Data Science | Edureka
Edureka!
 
Python Programming Tutorial | Edureka
Python Programming Tutorial | EdurekaPython Programming Tutorial | Edureka
Python Programming Tutorial | Edureka
Edureka!
 
Top 5 PMP Certifications | Edureka
Top 5 PMP Certifications | EdurekaTop 5 PMP Certifications | Edureka
Top 5 PMP Certifications | Edureka
Edureka!
 
Top Maven Interview Questions in 2020 | Edureka
Top Maven Interview Questions in 2020 | EdurekaTop Maven Interview Questions in 2020 | Edureka
Top Maven Interview Questions in 2020 | Edureka
Edureka!
 
Linux Mint Tutorial | Edureka
Linux Mint Tutorial | EdurekaLinux Mint Tutorial | Edureka
Linux Mint Tutorial | Edureka
Edureka!
 
How to Deploy Java Web App in AWS| Edureka
How to Deploy Java Web App in AWS| EdurekaHow to Deploy Java Web App in AWS| Edureka
How to Deploy Java Web App in AWS| Edureka
Edureka!
 
Importance of Digital Marketing | Edureka
Importance of Digital Marketing | EdurekaImportance of Digital Marketing | Edureka
Importance of Digital Marketing | Edureka
Edureka!
 
RPA in 2020 | Edureka
RPA in 2020 | EdurekaRPA in 2020 | Edureka
RPA in 2020 | Edureka
Edureka!
 
Email Notifications in Jenkins | Edureka
Email Notifications in Jenkins | EdurekaEmail Notifications in Jenkins | Edureka
Email Notifications in Jenkins | Edureka
Edureka!
 
EA Algorithm in Machine Learning | Edureka
EA Algorithm in Machine Learning | EdurekaEA Algorithm in Machine Learning | Edureka
EA Algorithm in Machine Learning | Edureka
Edureka!
 
Cognitive AI Tutorial | Edureka
Cognitive AI Tutorial | EdurekaCognitive AI Tutorial | Edureka
Cognitive AI Tutorial | Edureka
Edureka!
 
AWS Cloud Practitioner Tutorial | Edureka
AWS Cloud Practitioner Tutorial | EdurekaAWS Cloud Practitioner Tutorial | Edureka
AWS Cloud Practitioner Tutorial | Edureka
Edureka!
 
Blue Prism Top Interview Questions | Edureka
Blue Prism Top Interview Questions | EdurekaBlue Prism Top Interview Questions | Edureka
Blue Prism Top Interview Questions | Edureka
Edureka!
 
Big Data on AWS Tutorial | Edureka
Big Data on AWS Tutorial | Edureka Big Data on AWS Tutorial | Edureka
Big Data on AWS Tutorial | Edureka
Edureka!
 
A star algorithm | A* Algorithm in Artificial Intelligence | Edureka
A star algorithm | A* Algorithm in Artificial Intelligence | EdurekaA star algorithm | A* Algorithm in Artificial Intelligence | Edureka
A star algorithm | A* Algorithm in Artificial Intelligence | Edureka
Edureka!
 
Kubernetes Installation on Ubuntu | Edureka
Kubernetes Installation on Ubuntu | EdurekaKubernetes Installation on Ubuntu | Edureka
Kubernetes Installation on Ubuntu | Edureka
Edureka!
 
Introduction to DevOps | Edureka
Introduction to DevOps | EdurekaIntroduction to DevOps | Edureka
Introduction to DevOps | Edureka
Edureka!
 
What to learn during the 21 days Lockdown | Edureka
What to learn during the 21 days Lockdown | EdurekaWhat to learn during the 21 days Lockdown | Edureka
What to learn during the 21 days Lockdown | Edureka
Edureka!
 
Top 10 Dying Programming Languages in 2020 | Edureka
Top 10 Dying Programming Languages in 2020 | EdurekaTop 10 Dying Programming Languages in 2020 | Edureka
Top 10 Dying Programming Languages in 2020 | Edureka
Edureka!
 
Top 5 Trending Business Intelligence Tools | Edureka
Top 5 Trending Business Intelligence Tools | EdurekaTop 5 Trending Business Intelligence Tools | Edureka
Top 5 Trending Business Intelligence Tools | Edureka
Edureka!
 
Tableau Tutorial for Data Science | Edureka
Tableau Tutorial for Data Science | EdurekaTableau Tutorial for Data Science | Edureka
Tableau Tutorial for Data Science | Edureka
Edureka!
 
Python Programming Tutorial | Edureka
Python Programming Tutorial | EdurekaPython Programming Tutorial | Edureka
Python Programming Tutorial | Edureka
Edureka!
 
Top 5 PMP Certifications | Edureka
Top 5 PMP Certifications | EdurekaTop 5 PMP Certifications | Edureka
Top 5 PMP Certifications | Edureka
Edureka!
 
Top Maven Interview Questions in 2020 | Edureka
Top Maven Interview Questions in 2020 | EdurekaTop Maven Interview Questions in 2020 | Edureka
Top Maven Interview Questions in 2020 | Edureka
Edureka!
 
Linux Mint Tutorial | Edureka
Linux Mint Tutorial | EdurekaLinux Mint Tutorial | Edureka
Linux Mint Tutorial | Edureka
Edureka!
 
How to Deploy Java Web App in AWS| Edureka
How to Deploy Java Web App in AWS| EdurekaHow to Deploy Java Web App in AWS| Edureka
How to Deploy Java Web App in AWS| Edureka
Edureka!
 
Importance of Digital Marketing | Edureka
Importance of Digital Marketing | EdurekaImportance of Digital Marketing | Edureka
Importance of Digital Marketing | Edureka
Edureka!
 
RPA in 2020 | Edureka
RPA in 2020 | EdurekaRPA in 2020 | Edureka
RPA in 2020 | Edureka
Edureka!
 
Email Notifications in Jenkins | Edureka
Email Notifications in Jenkins | EdurekaEmail Notifications in Jenkins | Edureka
Email Notifications in Jenkins | Edureka
Edureka!
 
EA Algorithm in Machine Learning | Edureka
EA Algorithm in Machine Learning | EdurekaEA Algorithm in Machine Learning | Edureka
EA Algorithm in Machine Learning | Edureka
Edureka!
 
Cognitive AI Tutorial | Edureka
Cognitive AI Tutorial | EdurekaCognitive AI Tutorial | Edureka
Cognitive AI Tutorial | Edureka
Edureka!
 
AWS Cloud Practitioner Tutorial | Edureka
AWS Cloud Practitioner Tutorial | EdurekaAWS Cloud Practitioner Tutorial | Edureka
AWS Cloud Practitioner Tutorial | Edureka
Edureka!
 
Blue Prism Top Interview Questions | Edureka
Blue Prism Top Interview Questions | EdurekaBlue Prism Top Interview Questions | Edureka
Blue Prism Top Interview Questions | Edureka
Edureka!
 
Big Data on AWS Tutorial | Edureka
Big Data on AWS Tutorial | Edureka Big Data on AWS Tutorial | Edureka
Big Data on AWS Tutorial | Edureka
Edureka!
 
A star algorithm | A* Algorithm in Artificial Intelligence | Edureka
A star algorithm | A* Algorithm in Artificial Intelligence | EdurekaA star algorithm | A* Algorithm in Artificial Intelligence | Edureka
A star algorithm | A* Algorithm in Artificial Intelligence | Edureka
Edureka!
 
Kubernetes Installation on Ubuntu | Edureka
Kubernetes Installation on Ubuntu | EdurekaKubernetes Installation on Ubuntu | Edureka
Kubernetes Installation on Ubuntu | Edureka
Edureka!
 
Introduction to DevOps | Edureka
Introduction to DevOps | EdurekaIntroduction to DevOps | Edureka
Introduction to DevOps | Edureka
Edureka!
 
Ad

Recently uploaded (20)

Could Virtual Threads cast away the usage of Kotlin Coroutines - DevoxxUK2025
Could Virtual Threads cast away the usage of Kotlin Coroutines - DevoxxUK2025Could Virtual Threads cast away the usage of Kotlin Coroutines - DevoxxUK2025
Could Virtual Threads cast away the usage of Kotlin Coroutines - DevoxxUK2025
João Esperancinha
 
Q1 2025 Dropbox Earnings and Investor Presentation
Q1 2025 Dropbox Earnings and Investor PresentationQ1 2025 Dropbox Earnings and Investor Presentation
Q1 2025 Dropbox Earnings and Investor Presentation
Dropbox
 
Design pattern talk by Kaya Weers - 2025 (v2)
Design pattern talk by Kaya Weers - 2025 (v2)Design pattern talk by Kaya Weers - 2025 (v2)
Design pattern talk by Kaya Weers - 2025 (v2)
Kaya Weers
 
Artificial_Intelligence_in_Everyday_Life.pptx
Artificial_Intelligence_in_Everyday_Life.pptxArtificial_Intelligence_in_Everyday_Life.pptx
Artificial_Intelligence_in_Everyday_Life.pptx
03ANMOLCHAURASIYA
 
Unlocking Generative AI in your Web Apps
Unlocking Generative AI in your Web AppsUnlocking Generative AI in your Web Apps
Unlocking Generative AI in your Web Apps
Maximiliano Firtman
 
DevOpsDays SLC - Platform Engineers are Product Managers.pptx
DevOpsDays SLC - Platform Engineers are Product Managers.pptxDevOpsDays SLC - Platform Engineers are Product Managers.pptx
DevOpsDays SLC - Platform Engineers are Product Managers.pptx
Justin Reock
 
The No-Code Way to Build a Marketing Team with One AI Agent (Download the n8n...
The No-Code Way to Build a Marketing Team with One AI Agent (Download the n8n...The No-Code Way to Build a Marketing Team with One AI Agent (Download the n8n...
The No-Code Way to Build a Marketing Team with One AI Agent (Download the n8n...
SOFTTECHHUB
 
AI 3-in-1: Agents, RAG, and Local Models - Brent Laster
AI 3-in-1: Agents, RAG, and Local Models - Brent LasterAI 3-in-1: Agents, RAG, and Local Models - Brent Laster
AI 3-in-1: Agents, RAG, and Local Models - Brent Laster
All Things Open
 
Enterprise Integration Is Dead! Long Live AI-Driven Integration with Apache C...
Enterprise Integration Is Dead! Long Live AI-Driven Integration with Apache C...Enterprise Integration Is Dead! Long Live AI-Driven Integration with Apache C...
Enterprise Integration Is Dead! Long Live AI-Driven Integration with Apache C...
Markus Eisele
 
Slack like a pro: strategies for 10x engineering teams
Slack like a pro: strategies for 10x engineering teamsSlack like a pro: strategies for 10x engineering teams
Slack like a pro: strategies for 10x engineering teams
Nacho Cougil
 
Optima Cyber - Maritime Cyber Security - MSSP Services - Manolis Sfakianakis ...
Optima Cyber - Maritime Cyber Security - MSSP Services - Manolis Sfakianakis ...Optima Cyber - Maritime Cyber Security - MSSP Services - Manolis Sfakianakis ...
Optima Cyber - Maritime Cyber Security - MSSP Services - Manolis Sfakianakis ...
Mike Mingos
 
Integrating FME with Python: Tips, Demos, and Best Practices for Powerful Aut...
Integrating FME with Python: Tips, Demos, and Best Practices for Powerful Aut...Integrating FME with Python: Tips, Demos, and Best Practices for Powerful Aut...
Integrating FME with Python: Tips, Demos, and Best Practices for Powerful Aut...
Safe Software
 
Com fer un pla de gestió de dades amb l'eiNa DMP (en anglès)
Com fer un pla de gestió de dades amb l'eiNa DMP (en anglès)Com fer un pla de gestió de dades amb l'eiNa DMP (en anglès)
Com fer un pla de gestió de dades amb l'eiNa DMP (en anglès)
CSUC - Consorci de Serveis Universitaris de Catalunya
 
Challenges in Migrating Imperative Deep Learning Programs to Graph Execution:...
Challenges in Migrating Imperative Deep Learning Programs to Graph Execution:...Challenges in Migrating Imperative Deep Learning Programs to Graph Execution:...
Challenges in Migrating Imperative Deep Learning Programs to Graph Execution:...
Raffi Khatchadourian
 
Config 2025 presentation recap covering both days
Config 2025 presentation recap covering both daysConfig 2025 presentation recap covering both days
Config 2025 presentation recap covering both days
TrishAntoni1
 
AI x Accessibility UXPA by Stew Smith and Olivier Vroom
AI x Accessibility UXPA by Stew Smith and Olivier VroomAI x Accessibility UXPA by Stew Smith and Olivier Vroom
AI x Accessibility UXPA by Stew Smith and Olivier Vroom
UXPA Boston
 
Limecraft Webinar - 2025.3 release, featuring Content Delivery, Graphic Conte...
Limecraft Webinar - 2025.3 release, featuring Content Delivery, Graphic Conte...Limecraft Webinar - 2025.3 release, featuring Content Delivery, Graphic Conte...
Limecraft Webinar - 2025.3 release, featuring Content Delivery, Graphic Conte...
Maarten Verwaest
 
Top-AI-Based-Tools-for-Game-Developers (1).pptx
Top-AI-Based-Tools-for-Game-Developers (1).pptxTop-AI-Based-Tools-for-Game-Developers (1).pptx
Top-AI-Based-Tools-for-Game-Developers (1).pptx
BR Softech
 
AI-proof your career by Olivier Vroom and David WIlliamson
AI-proof your career by Olivier Vroom and David WIlliamsonAI-proof your career by Olivier Vroom and David WIlliamson
AI-proof your career by Olivier Vroom and David WIlliamson
UXPA Boston
 
Reimagine How You and Your Team Work with Microsoft 365 Copilot.pptx
Reimagine How You and Your Team Work with Microsoft 365 Copilot.pptxReimagine How You and Your Team Work with Microsoft 365 Copilot.pptx
Reimagine How You and Your Team Work with Microsoft 365 Copilot.pptx
John Moore
 
Could Virtual Threads cast away the usage of Kotlin Coroutines - DevoxxUK2025
Could Virtual Threads cast away the usage of Kotlin Coroutines - DevoxxUK2025Could Virtual Threads cast away the usage of Kotlin Coroutines - DevoxxUK2025
Could Virtual Threads cast away the usage of Kotlin Coroutines - DevoxxUK2025
João Esperancinha
 
Q1 2025 Dropbox Earnings and Investor Presentation
Q1 2025 Dropbox Earnings and Investor PresentationQ1 2025 Dropbox Earnings and Investor Presentation
Q1 2025 Dropbox Earnings and Investor Presentation
Dropbox
 
Design pattern talk by Kaya Weers - 2025 (v2)
Design pattern talk by Kaya Weers - 2025 (v2)Design pattern talk by Kaya Weers - 2025 (v2)
Design pattern talk by Kaya Weers - 2025 (v2)
Kaya Weers
 
Artificial_Intelligence_in_Everyday_Life.pptx
Artificial_Intelligence_in_Everyday_Life.pptxArtificial_Intelligence_in_Everyday_Life.pptx
Artificial_Intelligence_in_Everyday_Life.pptx
03ANMOLCHAURASIYA
 
Unlocking Generative AI in your Web Apps
Unlocking Generative AI in your Web AppsUnlocking Generative AI in your Web Apps
Unlocking Generative AI in your Web Apps
Maximiliano Firtman
 
DevOpsDays SLC - Platform Engineers are Product Managers.pptx
DevOpsDays SLC - Platform Engineers are Product Managers.pptxDevOpsDays SLC - Platform Engineers are Product Managers.pptx
DevOpsDays SLC - Platform Engineers are Product Managers.pptx
Justin Reock
 
The No-Code Way to Build a Marketing Team with One AI Agent (Download the n8n...
The No-Code Way to Build a Marketing Team with One AI Agent (Download the n8n...The No-Code Way to Build a Marketing Team with One AI Agent (Download the n8n...
The No-Code Way to Build a Marketing Team with One AI Agent (Download the n8n...
SOFTTECHHUB
 
AI 3-in-1: Agents, RAG, and Local Models - Brent Laster
AI 3-in-1: Agents, RAG, and Local Models - Brent LasterAI 3-in-1: Agents, RAG, and Local Models - Brent Laster
AI 3-in-1: Agents, RAG, and Local Models - Brent Laster
All Things Open
 
Enterprise Integration Is Dead! Long Live AI-Driven Integration with Apache C...
Enterprise Integration Is Dead! Long Live AI-Driven Integration with Apache C...Enterprise Integration Is Dead! Long Live AI-Driven Integration with Apache C...
Enterprise Integration Is Dead! Long Live AI-Driven Integration with Apache C...
Markus Eisele
 
Slack like a pro: strategies for 10x engineering teams
Slack like a pro: strategies for 10x engineering teamsSlack like a pro: strategies for 10x engineering teams
Slack like a pro: strategies for 10x engineering teams
Nacho Cougil
 
Optima Cyber - Maritime Cyber Security - MSSP Services - Manolis Sfakianakis ...
Optima Cyber - Maritime Cyber Security - MSSP Services - Manolis Sfakianakis ...Optima Cyber - Maritime Cyber Security - MSSP Services - Manolis Sfakianakis ...
Optima Cyber - Maritime Cyber Security - MSSP Services - Manolis Sfakianakis ...
Mike Mingos
 
Integrating FME with Python: Tips, Demos, and Best Practices for Powerful Aut...
Integrating FME with Python: Tips, Demos, and Best Practices for Powerful Aut...Integrating FME with Python: Tips, Demos, and Best Practices for Powerful Aut...
Integrating FME with Python: Tips, Demos, and Best Practices for Powerful Aut...
Safe Software
 
Challenges in Migrating Imperative Deep Learning Programs to Graph Execution:...
Challenges in Migrating Imperative Deep Learning Programs to Graph Execution:...Challenges in Migrating Imperative Deep Learning Programs to Graph Execution:...
Challenges in Migrating Imperative Deep Learning Programs to Graph Execution:...
Raffi Khatchadourian
 
Config 2025 presentation recap covering both days
Config 2025 presentation recap covering both daysConfig 2025 presentation recap covering both days
Config 2025 presentation recap covering both days
TrishAntoni1
 
AI x Accessibility UXPA by Stew Smith and Olivier Vroom
AI x Accessibility UXPA by Stew Smith and Olivier VroomAI x Accessibility UXPA by Stew Smith and Olivier Vroom
AI x Accessibility UXPA by Stew Smith and Olivier Vroom
UXPA Boston
 
Limecraft Webinar - 2025.3 release, featuring Content Delivery, Graphic Conte...
Limecraft Webinar - 2025.3 release, featuring Content Delivery, Graphic Conte...Limecraft Webinar - 2025.3 release, featuring Content Delivery, Graphic Conte...
Limecraft Webinar - 2025.3 release, featuring Content Delivery, Graphic Conte...
Maarten Verwaest
 
Top-AI-Based-Tools-for-Game-Developers (1).pptx
Top-AI-Based-Tools-for-Game-Developers (1).pptxTop-AI-Based-Tools-for-Game-Developers (1).pptx
Top-AI-Based-Tools-for-Game-Developers (1).pptx
BR Softech
 
AI-proof your career by Olivier Vroom and David WIlliamson
AI-proof your career by Olivier Vroom and David WIlliamsonAI-proof your career by Olivier Vroom and David WIlliamson
AI-proof your career by Olivier Vroom and David WIlliamson
UXPA Boston
 
Reimagine How You and Your Team Work with Microsoft 365 Copilot.pptx
Reimagine How You and Your Team Work with Microsoft 365 Copilot.pptxReimagine How You and Your Team Work with Microsoft 365 Copilot.pptx
Reimagine How You and Your Team Work with Microsoft 365 Copilot.pptx
John Moore
 

Advance Java Tutorial | J2EE, Java Servlets, JSP, JDBC | Java Certification Training | Edureka

  • 1. JAVA CERTIFICATION TRAINING www.edureka.co/java-j2ee-soa-training
  • 2. JAVA CERTIFICATION TRAINING www.edureka.co/java-j2ee-soa-training 01 Introduction To Advanced Java 02 Introduction to J2EE & JDBC 03 JDBC Fundamentals 04 Steps to create Application 05 JDBC Driver Types 06 JDBC Connections 07 JDBC Statements Topics For Today’s Discussion JDBC
  • 3. JAVA CERTIFICATION TRAINING www.edureka.co/java-j2ee-soa-training 01 Introduction To Advanced Java 02 Introduction to J2EE & JDBC 03 JDBC Fundamentals 04 Steps to create Application 05 JDBC Driver Types 06 JDBC Connections 07 JDBC Statements Topics For Today’s Discussion 01 Introduction To Servlets 02 Servlet Life Cycle 03 Steps to create Servlet 04 Session Tracking 05 Introduction to Cookies 06 Useful methods of Cookie 07 Creating a cookie JDBC Servlets
  • 4. JAVA CERTIFICATION TRAINING www.edureka.co/java-j2ee-soa-training 01 Introduction To Advanced Java 02 Introduction to J2EE & JDBC 03 JDBC Fundamentals 04 Steps to create Application 05 JDBC Driver Types 06 JDBC Connections 07 JDBC Statements Topics For Today’s Discussion 01 Introduction To Servlets 02 Servlet Life Cycle 03 Steps to create Servlet 04 Session Tracking 05 Introduction to Cookies 06 Useful methods of Cookie 07 Creating a cookie 01 IntroductionTo JSP 02 JSP Life Cycle 03 Advantages of JSP vs Servlet 04 JSP Scripting Elements JDBC Servlets JSP
  • 6. JAVA CERTIFICATION TRAINING www.edureka.co/java-j2ee-soa-training Introduction To Advanced Java Web & Enterprise Application Client & Server Architecture Servlets, Web, JSP, JDBC etc. Next level Java Programming
  • 8. JAVA CERTIFICATION TRAINING www.edureka.co/java-j2ee-soa-training ✓ Used for developing desktop applications, forms the core/base API. ✓ Helpful for client side standalone applications Different Editions of Java Java 2 Standard Edition J2SE
  • 9. JAVA CERTIFICATION TRAINING www.edureka.co/java-j2ee-soa-training ✓ Used for client side ✓ Used for applications which run on servers, for example web sites. ✓ Includes Servlets, Java Server Pages, Java ServerFaces J2EE Different Editions of Java J2SE Java 2 Enterprise Edition
  • 10. JAVA CERTIFICATION TRAINING www.edureka.co/java-j2ee-soa-training J2ME J2EE Different Editions of Java J2SE Java Development Kit ✓ JRE is the environment within which the JVM runs ✓ It contains a set of libraries + other files that JVM uses at runtime ✓ Also called Java RTE ✓ Runs on resource constrained devices (small scale devices) like cell phones, for example games. Java 2 Micro Edition
  • 12. JAVA CERTIFICATION TRAINING www.edureka.co/java-j2ee-soa-training Java 2 Enterprise Edition A platform Independent, Java Centric environment for developing, building & deploying Web-based applications online. Simplifies the complexity of building n-tier Applications Standardizes an API between components and application server container J2EE application server and container provide the framework services Why J2EE?
  • 14. JAVA CERTIFICATION TRAINING www.edureka.co/java-j2ee-soa-training What is JDBC? It is a standard Java API for database-independent connectivity between the Java programming language and a wide range of databases. Connection 01 Create SQL 02 Execute SQL 03 Viewing 04
  • 15. JAVA CERTIFICATION TRAINING www.edureka.co/java-j2ee-soa-training JDBC Architecture
  • 16. JAVA CERTIFICATION TRAINING www.edureka.co/java-j2ee-soa-training JDBC SQL Syntax Drop table Create table Insert data Create database Drop database SQL> CREATE DATABASE DATABASE_NAME;
  • 17. JAVA CERTIFICATION TRAINING www.edureka.co/java-j2ee-soa-training JDBC SQL Syntax Drop table Create table Insert data Create database Drop database SQL> DROP DATABASE DATABASE_NAME;
  • 18. JAVA CERTIFICATION TRAINING www.edureka.co/java-j2ee-soa-training JDBC SQL Syntax Drop table Create table Insert data Create database Drop database SQL> CREATE TABLE table_name ( column_name column_data_type, column_name column_data_type, column_name column_data_type ... );
  • 19. JAVA CERTIFICATION TRAINING www.edureka.co/java-j2ee-soa-training JDBC SQL Syntax Drop table Create table Insert data Create database Drop database SQL> DROP TABLE TABLE_NAME;
  • 20. JAVA CERTIFICATION TRAINING www.edureka.co/java-j2ee-soa-training JDBC SQL Syntax Drop table Create table Insert data Create database Drop database SQL> INSERT INTO table_name VALUES (column1, column2, ...);
  • 21. JAVA CERTIFICATION TRAINING www.edureka.co/java-j2ee-soa-training Steps to create a JDBC Application Import the packages Register Driver & Open Connection Execute a Query Extract data from result set Clean up the environment
  • 23. JAVA CERTIFICATION TRAINING www.edureka.co/java-j2ee-soa-training JDBCODBC BRIDGE JDBCNATIVEAPI JDBCNOTpure JDBC ODBC DriverJDBCNETpure 100%Pure Java Local Computer JavaApplicationsProprietary Vendor Specific Protocol Network Communication Database Server DB Vendor Driver
  • 24. JAVA CERTIFICATION TRAINING www.edureka.co/java-j2ee-soa-training JDBCODBC BRIDGE JDBCNATIVEAPI JDBCNOTpure JDBC ODBC DriverJDBCNETpure 100%Pure Java Local Computer JavaApplicationsProprietary Vendor Specific Protocol Network Communication Database Server DB Vendor Driver
  • 25. JAVA CERTIFICATION TRAINING www.edureka.co/java-j2ee-soa-training JDBCODBC BRIDGE JDBCNATIVEAPI JDBCNOTpure JDBC ODBC DriverJDBCNETpure 100%Pure Java Local Computer JavaApplications Proprietary Vendor Specific Protocol Network Communication Database Server JDBC Type 1 JDBC Type 2 JDBC Type 3 Middleware Server
  • 26. JAVA CERTIFICATION TRAINING www.edureka.co/java-j2ee-soa-training JDBCODBC BRIDGE JDBCNATIVEAPI JDBCNOTpure JDBC ODBC Driver JDBCNETpure 100%Pure Java Local Computer JavaApplications Proprietary Vendor Specific Protocol Network Communication Database Server
  • 27. JAVA CERTIFICATION TRAINING www.edureka.co/java-j2ee-soa-training JDBC Connections Create connection object DB URL Formation Close connection Import JDBC Packages Register JDBC Driver import java.sql.* ; // for standard JDBC programs import java.math.* ; // for BigDecimal and BigInteger support
  • 28. JAVA CERTIFICATION TRAINING www.edureka.co/java-j2ee-soa-training JDBC Connections Create connection object DB URL Formation Close connection Import JDBC Packages Register JDBC Driver Approach I - Class.forName() try { Class.forName("oracle.jdbc.driver.OracleDriver"); } catch(ClassNotFoundException ex) { System.out.println("Error: unable to load driver class!"); System.exit(1); }
  • 29. JAVA CERTIFICATION TRAINING www.edureka.co/java-j2ee-soa-training JDBC Connections Create connection object DB URL Formation Close connection Import JDBC Packages Register JDBC Driver Approach II - DriverManager.registerDriver() try { Driver myDriver = new oracle.jdbc.driver.OracleDriver(); DriverManager.registerDriver( myDriver ); } catch(ClassNotFoundException ex) { System.out.println("Error: unable to load driver class!"); System.exit(1); }
  • 30. JAVA CERTIFICATION TRAINING www.edureka.co/java-j2ee-soa-training JDBC Connections Create connection object DB URL Formation Close connection Import JDBC Packages Register JDBC Driver RDBMS JDBC Driver Name URL MYSQL com.mysql.jdbc.Driver jdbc:mysql://hostname/ databaseName Sybase com.Sybase.jdbc.SybDriver jdbc:sybase:Tds:hostname: port Number/databaseName DB2 COM.ibm.db2.jdbc.net.DB2Driver jdbc:db2:hostname:port Number/databaseName Oracle oracle.jdbc.driver.OracleDriver jdbc:oracle:thin:@hostname:port Number:databaseName getConnection(String url) getConnection(String url, Properties prop) getConnection(String url, String user, String password)
  • 31. JAVA CERTIFICATION TRAINING www.edureka.co/java-j2ee-soa-training JDBC Connections Create connection object DB URL Formation Close connection Import JDBC Packages Register JDBC Driver Using a Database URL with a username and password Using Only a Database URL Using a Database URL and a Properties Object
  • 32. JAVA CERTIFICATION TRAINING www.edureka.co/java-j2ee-soa-training JDBC Connections Create connection object DB URL Formation Close connection Import JDBC Packages Register JDBC Driver To ensure that a connection is closed, you could provide a 'finally' block in your code conn.close();
  • 33. JAVA CERTIFICATION TRAINING www.edureka.co/java-j2ee-soa-training JDBC Statements Statement Prepared Statement Callable Statement
  • 34. DEMO
  • 36. JAVA CERTIFICATION TRAINING www.edureka.co/java-j2ee-soa-training What are Servlets? Request Response is generated at runtimeResponse is sent to client Client Server
  • 37. JAVA CERTIFICATION TRAINING www.edureka.co/java-j2ee-soa-training What are Servlets? Creates Web Application Provides Interfaces & Classes Must be implemented to create Servlet Robust & Scalable Deployed to create Web Page Responds to any incoming requests
  • 38. JAVA CERTIFICATION TRAINING www.edureka.co/java-j2ee-soa-training Servlet Life Cycle Handling Request Loading & Instantiation Initialized End Start Stop init() service() destroy() End of Request thread
  • 39. JAVA CERTIFICATION TRAINING www.edureka.co/java-j2ee-soa-training Steps to create a simple servlet Create and compile servlet source code Copy servlet class file & add mappings to web.xml file Start Apache Tomcat Start Web Browser & Request the Servlet
  • 40. JAVA CERTIFICATION TRAINING www.edureka.co/java-j2ee-soa-training Session Tracking in Servlets Session tracking is a way to maintain state(data) of an user. 1. Request(new) 3. Second new request 2. Response Client Server
  • 41. JAVA CERTIFICATION TRAINING www.edureka.co/java-j2ee-soa-training Cookies URL rewriting Hidden form field Http session
  • 42. JAVA CERTIFICATION TRAINING www.edureka.co/java-j2ee-soa-training Cookies in Servlet It is a small piece of information that is persisted between the multiple client requests. 1. Request 2. Request + Cookies 3. Response + Cookies
  • 43. JAVA CERTIFICATION TRAINING www.edureka.co/java-j2ee-soa-training Useful Methods of Cookie Class public void setMaxAge(int expiry) Sets the maximum age of the cookies in seconds public String getName() Returns the name of the cookie. Name cannot be changed after creation public String getValue() Returns the value of the cookie public void setName(String name) Changes the name of the cookie public void setValue(String value) Changes the value of the cookie
  • 44. JAVA CERTIFICATION TRAINING www.edureka.co/java-j2ee-soa-training Creating & Deleting a Cookie Deletion Creation 1.Cookie ck=new Cookie("user",“Edureka");//creating cookie object 2.response.addCookie(ck);//adding cookie in the response 1.Cookie ck=new Cookie("user","");//deleting value of cookie 2.ck.setMaxAge(0);//changing the maximum age to 0 seconds 3.response.addCookie(ck);//adding cookie in the response
  • 45. JAVA CERTIFICATION TRAINING www.edureka.co/java-j2ee-soa-training Pros & Cons of Cookies Useful & Easy Technique to maintain the state Maintained at client side Wont work if cookie is disabled form browser Only textual information can be set in cookie object
  • 47. JAVA CERTIFICATION TRAINING www.edureka.co/java-j2ee-soa-training What is JSP? It is used to create web application just like Servlet technology. Also called as extension of servlet Fast Development Tracking User Easy to maintain Portable Powerful Flexible
  • 48. JAVA CERTIFICATION TRAINING www.edureka.co/java-j2ee-soa-training Advantages of JSP over Servlets JSP Operation Servlets ▪ Extension to Servlet ▪ It is not a extension of JSP ▪ No need to recompile and redeploy ▪ Code needs to be recompiled ▪ Less code than servlet ▪ More code comparatively ▪ Easy to maintain ▪ Bit complicated
  • 49. JAVA CERTIFICATION TRAINING www.edureka.co/java-j2ee-soa-training Life Cycle of JSP Buffer (dynamic content) Servlet Object JRE JSP Servlet (.java File) Class file Compiler JSP Translator
  • 50. JAVA CERTIFICATION TRAINING www.edureka.co/java-j2ee-soa-training JSP Scripting Elements <% java source code %>scriptlet <%= statement %>expression <%! field or method declaration %>declaration
  翻译: