SlideShare a Scribd company logo
Java Programming and
Security
UMESHCHANDRA YADAV ( 1783910909 )
DHIRAJ GUPTA ( 1783910903 )
INTRODUCTION
• Overview of Java.
• Object Oriented Programming Concept(OOP in Java)
• Exception Handling in Java
• Applet in Java
• Servlet
• JSP in Java
• JDBC in Java
• Security in Java
Overview of Java
What is Java
Java is a programming language and a platform .It developed by Games
Gosling in 1991 at Sun micro-system.
Java is a high level, robust, object-oriented and secure programming language.
Java Example
class Simple{
public static void main(String args[]){
System.out.println("Hello Java");
}
}
• Application
According to Sun, 3 billion devices run Java. There are many devices where Java is currently used.
Desktop Applications Web Applications
Enterprise Applications Mobile App
Embedded System Smart Card
Robotics Games, etc.
• Features of Java
Simple Object – oriented
Portable Platform Independent
Robust Architecture neutral
Interpreted High Performance
Multi threated Distributed
Dynamic Secured
Java programming and security
Oops Concept
Class
Object
Inheritance
Polymorphism
Abstraction
Encapsulation
An entity that has state and behavior is
known as an object.
A class is a group of objects which have
common properties. It is a blueprint from
which objects are created.
Inheritance in Java
• Inheritance in Java is a mechanism in which one object acquires all the properties and behaviors of a
parent object.
• The idea behind inheritance in Java is that you can create new classes that are built upon existing classes
• Types of inheritance in java
1. Single
2. Multilevel
3. Hierarchical
4. Multiple
5. Hybrid
Polymorphism in Java
Polymorphism in Java is a concept by which we can perform a single action in different ways.
There are two types of polymorphism in Java:
Compile-time polymorphism
Runtime polymorphism.
Encapsulation in java
Encapsulation in Java is a process of wrapping code and data together into a single unit.
We can create a fully encapsulated class in Java by making all the data members of the class
private.
Advantage of Encapsulation in Java
Control over data Data Hiding.
Easy and fast to create an encapsulated class in Java. Easy to Test.
Abstraction in java
Abstraction is a process of hiding the implementation details and showing only functionality to the user.
• There are two ways to achieve abstraction in java
• Abstract class (0 to 100%)
• Interface (100%)
Packages in java
• A java package is a group of similar types of
classes, interfaces and sub-packages.
• Package in java can be categorized in two form
Built-in package ex. java.util, java.lang etc
User-defined package.
Exception Handling in Java
• The Exception Handling in Java is one of the powerful mechanism to handle the runtime errors
so that normal flow of the application can be maintained.
Java Exception Keywords
Java Applet
• Applet is a special type of program that is embedded in the webpage to generate the dynamic
content. It runs inside the browser and works at client side.
Advantage of Applet
• It works at client side so less response time.
• Secured
• It can be executed by browsers running under many plateforms, including Linux, Windows,
Mac Os etc.
Lifecycle of Applet
• Applet is initialized.
• Applet is started.
• Applet is painted.
• Applet is stopped.
• Applet is destroyed.
Servlets
• Servlet technology is used to create a web application (dynamic web).
• Advantages of Servlet over CGI
Performance Robust
Secure Portability
Life Cycle of a Servlet
• Servlet class is loaded.
• Servlet instance is created.
• init method is invoked.
• service method is invoked.
• destroy method is invoked.
JSP (Java Servlet Page)
• JSP technology is used to create web application just like Servlet technology
• A JSP page consists of HTML tags and JSP tags. The JSP pages are easier to maintain than Servlet
because we can separate designing and development.
• Advantage of JSP over Servlet
Extension to Servlet Easy to maintain
Less code than Servlet No need to recompile
• JSP Scripting elements
The scripting elements provides the ability to insert java code inside the JSP.
Scriptlet tag used to execute java source code in JSP
Declaration tag used to declare fields and methods.
Expression tag used to print the values of variable or method
JDBC(Java Database Connectivity)
• We can use JDBC API to access tabular data stored in any relational database. By the help of JDBC API,
we can save, update, delete and fetch data from the database.
• There are four types of JDBC drivers:
• JDBC-ODBC Bridge Driver,
• Native Driver,
• Network Protocol Driver, and
• Thin Driver
• Java Database Connectivity with 5 Steps
• Register the Driver class
• Create connection
• Create statement
• Execute queries
• Close connection
Java Security
• java.security package provide a brief management of security concern . It have
AccessControlContext , AllPermission , Permission , more classes.
• Static Data Typing: Java is a statically typed language, which reduces the possibilities of run-time
detection of type-related errors
• Access Modifiers: Java allows us to use different access modifiers like public and private to
control access to fields, methods, and classes
• Automatic Memory Management: Java has garbage-collection based memory management,
which frees developers from managing this manually
• Bytecode Verification: Java is a compiled language, which means it converts code into platform-
agnostic bytecode, and runtime verifies every bytecode it loads for execution
Java Cryptography
• The Java Cryptographic Architecture (JCA) provides a framework to access and implement
cryptographic functionalities in Java, including:
Digital signatures Message digests
Symmetric and asymmetric ciphers Message authentication codes
Key generators and key factories
Project
• We practice multiple small program and creating web
page like Biodata form , Resume Form ,Desktop
Application etc.
• Mini Project Online management System in JSP.
• Another a small Online product Sale Website.
Thank You

More Related Content

What's hot (19)

The Real Thing: Java Virtual Machine
The Real Thing: Java Virtual MachineThe Real Thing: Java Virtual Machine
The Real Thing: Java Virtual Machine
Frontech
 
Java and Java platforms
Java and Java platformsJava and Java platforms
Java and Java platforms
Ilio Catallo
 
Advanced java
Advanced java Advanced java
Advanced java
NA
 
Java virtual machine
Java virtual machineJava virtual machine
Java virtual machine
Dhanith Krishna
 
Introduction to Java Programming
Introduction to Java Programming Introduction to Java Programming
Introduction to Java Programming
Saravanakumar R
 
Advantages of java
Advantages of javaAdvantages of java
Advantages of java
xxx007008
 
Java-java virtual machine
Java-java virtual machineJava-java virtual machine
Java-java virtual machine
Surbhi Panhalkar
 
Java introduction
Java introductionJava introduction
Java introduction
Sagar Verma
 
Java & J2EE Struts with Hibernate Framework
Java & J2EE Struts with Hibernate FrameworkJava & J2EE Struts with Hibernate Framework
Java & J2EE Struts with Hibernate Framework
Mohit Belwal
 
Java fundamentals
Java fundamentalsJava fundamentals
Java fundamentals
Om Ganesh
 
Advance Java Topics (J2EE)
Advance Java Topics (J2EE)Advance Java Topics (J2EE)
Advance Java Topics (J2EE)
slire
 
Security Architecture of the Java platform
Security Architecture of the Java platformSecurity Architecture of the Java platform
Security Architecture of the Java platform
Martin Toshev
 
1 java introduction
1 java introduction1 java introduction
1 java introduction
abdullah al mahamud rosi
 
JVM
JVMJVM
JVM
baabtra.com - No. 1 supplier of quality freshers
 
A begineers guide of JAVA - Getting Started
 A begineers guide of JAVA - Getting Started A begineers guide of JAVA - Getting Started
A begineers guide of JAVA - Getting Started
Rakesh Madugula
 
Lec 3 01_aug13
Lec 3 01_aug13Lec 3 01_aug13
Lec 3 01_aug13
Palak Sanghani
 
JAVA ENVIRONMENT
JAVA  ENVIRONMENTJAVA  ENVIRONMENT
JAVA ENVIRONMENT
josemachoco
 
Architecture diagram of jvm
Architecture diagram of jvmArchitecture diagram of jvm
Architecture diagram of jvm
home
 
History of java'
History of java'History of java'
History of java'
deepthisujithra
 
The Real Thing: Java Virtual Machine
The Real Thing: Java Virtual MachineThe Real Thing: Java Virtual Machine
The Real Thing: Java Virtual Machine
Frontech
 
Java and Java platforms
Java and Java platformsJava and Java platforms
Java and Java platforms
Ilio Catallo
 
Advanced java
Advanced java Advanced java
Advanced java
NA
 
Introduction to Java Programming
Introduction to Java Programming Introduction to Java Programming
Introduction to Java Programming
Saravanakumar R
 
Advantages of java
Advantages of javaAdvantages of java
Advantages of java
xxx007008
 
Java introduction
Java introductionJava introduction
Java introduction
Sagar Verma
 
Java & J2EE Struts with Hibernate Framework
Java & J2EE Struts with Hibernate FrameworkJava & J2EE Struts with Hibernate Framework
Java & J2EE Struts with Hibernate Framework
Mohit Belwal
 
Java fundamentals
Java fundamentalsJava fundamentals
Java fundamentals
Om Ganesh
 
Advance Java Topics (J2EE)
Advance Java Topics (J2EE)Advance Java Topics (J2EE)
Advance Java Topics (J2EE)
slire
 
Security Architecture of the Java platform
Security Architecture of the Java platformSecurity Architecture of the Java platform
Security Architecture of the Java platform
Martin Toshev
 
A begineers guide of JAVA - Getting Started
 A begineers guide of JAVA - Getting Started A begineers guide of JAVA - Getting Started
A begineers guide of JAVA - Getting Started
Rakesh Madugula
 
JAVA ENVIRONMENT
JAVA  ENVIRONMENTJAVA  ENVIRONMENT
JAVA ENVIRONMENT
josemachoco
 
Architecture diagram of jvm
Architecture diagram of jvmArchitecture diagram of jvm
Architecture diagram of jvm
home
 

Similar to Java programming and security (20)

Java
JavaJava
Java
seenak
 
Java
JavaJava
Java
QUAID-E-AWAM UNIVERSITY OF ENGINEERING, SCIENCE & TECHNOLOGY, NAWABSHAH, SINDH, PAKISTAN
 
Java PPT
Java PPTJava PPT
Java PPT
Dilip Kr. Jangir
 
1 Introduction to JAVA.pptx
1 Introduction to JAVA.pptx1 Introduction to JAVA.pptx
1 Introduction to JAVA.pptx
Kabiles07
 
Advance java prasentation
Advance java prasentationAdvance java prasentation
Advance java prasentation
dhananajay95
 
Java Programming
Java ProgrammingJava Programming
Java Programming
Elizabeth alexander
 
ACCELERATE YOUR IN JAVA
ACCELERATE YOUR IN JAVAACCELERATE YOUR IN JAVA
ACCELERATE YOUR IN JAVA
robinkumar70125
 
L1 basics
L1 basicsL1 basics
L1 basics
teach4uin
 
JAVA object oriented programming (oop).ppt
JAVA object oriented programming (oop).pptJAVA object oriented programming (oop).ppt
JAVA object oriented programming (oop).ppt
AliyaJav
 
PPT on JAVA
PPT  on JAVA PPT  on JAVA
PPT on JAVA
Er Bhagat Sharma
 
Power Point Presentation on Core Java For the Beginers
Power Point Presentation on Core Java For the BeginersPower Point Presentation on Core Java For the Beginers
Power Point Presentation on Core Java For the Beginers
SHAQUIBHASAN2
 
Java notes
Java notesJava notes
Java notes
Debasish Biswas
 
Introduction to Java
Introduction to JavaIntroduction to Java
Introduction to Java
Soumya Suman
 
Introduction to JAVA
Introduction to JAVAIntroduction to JAVA
Introduction to JAVA
javatrainingonline
 
Introduction to JAVA
Introduction to JAVAIntroduction to JAVA
Introduction to JAVA
Mindsmapped Consulting
 
Presentation5
Presentation5Presentation5
Presentation5
Natasha Bains
 
Fundamentals of JAVA
Fundamentals of JAVAFundamentals of JAVA
Fundamentals of JAVA
KUNAL GADHIA
 
Chapter 1 introduction to java technology
Chapter 1 introduction to java technologyChapter 1 introduction to java technology
Chapter 1 introduction to java technology
sshhzap
 
JavaClassPresentation
JavaClassPresentationJavaClassPresentation
JavaClassPresentation
juliasceasor
 
Software environment
Software environmentSoftware environment
Software environment
Kinnudj Amee
 
Ad

Recently uploaded (20)

IntroSlides-June-GDG-Cloud-Munich community [email protected]
IntroSlides-June-GDG-Cloud-Munich community gathering@Netlight.pdfIntroSlides-June-GDG-Cloud-Munich community gathering@Netlight.pdf
IntroSlides-June-GDG-Cloud-Munich community [email protected]
Luiz Carneiro
 
The first edition of the AIAG-VDA FMEA.pptx
The first edition of the AIAG-VDA FMEA.pptxThe first edition of the AIAG-VDA FMEA.pptx
The first edition of the AIAG-VDA FMEA.pptx
Mayank Mathur
 
A DECISION SUPPORT SYSTEM FOR ESTIMATING COST OF SOFTWARE PROJECTS USING A HY...
A DECISION SUPPORT SYSTEM FOR ESTIMATING COST OF SOFTWARE PROJECTS USING A HY...A DECISION SUPPORT SYSTEM FOR ESTIMATING COST OF SOFTWARE PROJECTS USING A HY...
A DECISION SUPPORT SYSTEM FOR ESTIMATING COST OF SOFTWARE PROJECTS USING A HY...
ijfcstjournal
 
FINAL 2013 Module 20 Corrosion Control and Sequestering PPT Slides.pptx
FINAL 2013 Module 20 Corrosion Control and Sequestering PPT Slides.pptxFINAL 2013 Module 20 Corrosion Control and Sequestering PPT Slides.pptx
FINAL 2013 Module 20 Corrosion Control and Sequestering PPT Slides.pptx
kippcam
 
First Review PPT gfinal gyft ftu liu yrfut go
First Review PPT gfinal gyft  ftu liu yrfut goFirst Review PPT gfinal gyft  ftu liu yrfut go
First Review PPT gfinal gyft ftu liu yrfut go
Sowndarya6
 
chemistry investigatory project for class 12
chemistry investigatory project for class 12chemistry investigatory project for class 12
chemistry investigatory project for class 12
Susis10
 
Flow Chart Proses Bisnis prosscesss.docx
Flow Chart Proses Bisnis prosscesss.docxFlow Chart Proses Bisnis prosscesss.docx
Flow Chart Proses Bisnis prosscesss.docx
rifka575530
 
社内勉強会資料_Chain of Thought .
社内勉強会資料_Chain of Thought                           .社内勉強会資料_Chain of Thought                           .
社内勉強会資料_Chain of Thought .
NABLAS株式会社
 
SEW make Brake BE05 – BE30 Brake – Repair Kit
SEW make Brake BE05 – BE30 Brake – Repair KitSEW make Brake BE05 – BE30 Brake – Repair Kit
SEW make Brake BE05 – BE30 Brake – Repair Kit
projectultramechanix
 
Top Cite Articles- International Journal on Soft Computing, Artificial Intell...
Top Cite Articles- International Journal on Soft Computing, Artificial Intell...Top Cite Articles- International Journal on Soft Computing, Artificial Intell...
Top Cite Articles- International Journal on Soft Computing, Artificial Intell...
ijscai
 
Development of Portable Biomass Briquetting Machine (S, A & D)-1.pptx
Development of Portable Biomass Briquetting Machine (S, A & D)-1.pptxDevelopment of Portable Biomass Briquetting Machine (S, A & D)-1.pptx
Development of Portable Biomass Briquetting Machine (S, A & D)-1.pptx
aniket862935
 
Universal Human Values and professional ethics Quantum AKTU BVE401
Universal Human Values and professional ethics Quantum AKTU BVE401Universal Human Values and professional ethics Quantum AKTU BVE401
Universal Human Values and professional ethics Quantum AKTU BVE401
Unknown
 
11th International Conference on Data Mining (DaMi 2025)
11th International Conference on Data Mining (DaMi 2025)11th International Conference on Data Mining (DaMi 2025)
11th International Conference on Data Mining (DaMi 2025)
kjim477n
 
Rigor, ethics, wellbeing and resilience in the ICT doctoral journey
Rigor, ethics, wellbeing and resilience in the ICT doctoral journeyRigor, ethics, wellbeing and resilience in the ICT doctoral journey
Rigor, ethics, wellbeing and resilience in the ICT doctoral journey
Yannis
 
Structure of OS ppt Structure of OsS ppt
Structure of OS ppt Structure of OsS pptStructure of OS ppt Structure of OsS ppt
Structure of OS ppt Structure of OsS ppt
Wahajch
 
Impurities of Water and their Significance.pptx
Impurities of Water and their Significance.pptxImpurities of Water and their Significance.pptx
Impurities of Water and their Significance.pptx
dhanashree78
 
A Comprehensive Investigation into the Accuracy of Soft Computing Tools for D...
A Comprehensive Investigation into the Accuracy of Soft Computing Tools for D...A Comprehensive Investigation into the Accuracy of Soft Computing Tools for D...
A Comprehensive Investigation into the Accuracy of Soft Computing Tools for D...
Journal of Soft Computing in Civil Engineering
 
Third Review PPT that consists of the project d etails like abstract.
Third Review PPT that consists of the project d etails like abstract.Third Review PPT that consists of the project d etails like abstract.
Third Review PPT that consists of the project d etails like abstract.
Sowndarya6
 
Introduction to AI agent development with MCP
Introduction to AI agent development with MCPIntroduction to AI agent development with MCP
Introduction to AI agent development with MCP
Dori Waldman
 
Présentation_gestion[1] [Autosaved].pptx
Présentation_gestion[1] [Autosaved].pptxPrésentation_gestion[1] [Autosaved].pptx
Présentation_gestion[1] [Autosaved].pptx
KHADIJAESSAKET
 
The first edition of the AIAG-VDA FMEA.pptx
The first edition of the AIAG-VDA FMEA.pptxThe first edition of the AIAG-VDA FMEA.pptx
The first edition of the AIAG-VDA FMEA.pptx
Mayank Mathur
 
A DECISION SUPPORT SYSTEM FOR ESTIMATING COST OF SOFTWARE PROJECTS USING A HY...
A DECISION SUPPORT SYSTEM FOR ESTIMATING COST OF SOFTWARE PROJECTS USING A HY...A DECISION SUPPORT SYSTEM FOR ESTIMATING COST OF SOFTWARE PROJECTS USING A HY...
A DECISION SUPPORT SYSTEM FOR ESTIMATING COST OF SOFTWARE PROJECTS USING A HY...
ijfcstjournal
 
FINAL 2013 Module 20 Corrosion Control and Sequestering PPT Slides.pptx
FINAL 2013 Module 20 Corrosion Control and Sequestering PPT Slides.pptxFINAL 2013 Module 20 Corrosion Control and Sequestering PPT Slides.pptx
FINAL 2013 Module 20 Corrosion Control and Sequestering PPT Slides.pptx
kippcam
 
First Review PPT gfinal gyft ftu liu yrfut go
First Review PPT gfinal gyft  ftu liu yrfut goFirst Review PPT gfinal gyft  ftu liu yrfut go
First Review PPT gfinal gyft ftu liu yrfut go
Sowndarya6
 
chemistry investigatory project for class 12
chemistry investigatory project for class 12chemistry investigatory project for class 12
chemistry investigatory project for class 12
Susis10
 
Flow Chart Proses Bisnis prosscesss.docx
Flow Chart Proses Bisnis prosscesss.docxFlow Chart Proses Bisnis prosscesss.docx
Flow Chart Proses Bisnis prosscesss.docx
rifka575530
 
社内勉強会資料_Chain of Thought .
社内勉強会資料_Chain of Thought                           .社内勉強会資料_Chain of Thought                           .
社内勉強会資料_Chain of Thought .
NABLAS株式会社
 
SEW make Brake BE05 – BE30 Brake – Repair Kit
SEW make Brake BE05 – BE30 Brake – Repair KitSEW make Brake BE05 – BE30 Brake – Repair Kit
SEW make Brake BE05 – BE30 Brake – Repair Kit
projectultramechanix
 
Top Cite Articles- International Journal on Soft Computing, Artificial Intell...
Top Cite Articles- International Journal on Soft Computing, Artificial Intell...Top Cite Articles- International Journal on Soft Computing, Artificial Intell...
Top Cite Articles- International Journal on Soft Computing, Artificial Intell...
ijscai
 
Development of Portable Biomass Briquetting Machine (S, A & D)-1.pptx
Development of Portable Biomass Briquetting Machine (S, A & D)-1.pptxDevelopment of Portable Biomass Briquetting Machine (S, A & D)-1.pptx
Development of Portable Biomass Briquetting Machine (S, A & D)-1.pptx
aniket862935
 
Universal Human Values and professional ethics Quantum AKTU BVE401
Universal Human Values and professional ethics Quantum AKTU BVE401Universal Human Values and professional ethics Quantum AKTU BVE401
Universal Human Values and professional ethics Quantum AKTU BVE401
Unknown
 
11th International Conference on Data Mining (DaMi 2025)
11th International Conference on Data Mining (DaMi 2025)11th International Conference on Data Mining (DaMi 2025)
11th International Conference on Data Mining (DaMi 2025)
kjim477n
 
Rigor, ethics, wellbeing and resilience in the ICT doctoral journey
Rigor, ethics, wellbeing and resilience in the ICT doctoral journeyRigor, ethics, wellbeing and resilience in the ICT doctoral journey
Rigor, ethics, wellbeing and resilience in the ICT doctoral journey
Yannis
 
Structure of OS ppt Structure of OsS ppt
Structure of OS ppt Structure of OsS pptStructure of OS ppt Structure of OsS ppt
Structure of OS ppt Structure of OsS ppt
Wahajch
 
Impurities of Water and their Significance.pptx
Impurities of Water and their Significance.pptxImpurities of Water and their Significance.pptx
Impurities of Water and their Significance.pptx
dhanashree78
 
Third Review PPT that consists of the project d etails like abstract.
Third Review PPT that consists of the project d etails like abstract.Third Review PPT that consists of the project d etails like abstract.
Third Review PPT that consists of the project d etails like abstract.
Sowndarya6
 
Introduction to AI agent development with MCP
Introduction to AI agent development with MCPIntroduction to AI agent development with MCP
Introduction to AI agent development with MCP
Dori Waldman
 
Présentation_gestion[1] [Autosaved].pptx
Présentation_gestion[1] [Autosaved].pptxPrésentation_gestion[1] [Autosaved].pptx
Présentation_gestion[1] [Autosaved].pptx
KHADIJAESSAKET
 
Ad

Java programming and security

  • 1. Java Programming and Security UMESHCHANDRA YADAV ( 1783910909 ) DHIRAJ GUPTA ( 1783910903 )
  • 2. INTRODUCTION • Overview of Java. • Object Oriented Programming Concept(OOP in Java) • Exception Handling in Java • Applet in Java • Servlet • JSP in Java • JDBC in Java • Security in Java
  • 3. Overview of Java What is Java Java is a programming language and a platform .It developed by Games Gosling in 1991 at Sun micro-system. Java is a high level, robust, object-oriented and secure programming language. Java Example class Simple{ public static void main(String args[]){ System.out.println("Hello Java"); } }
  • 4. • Application According to Sun, 3 billion devices run Java. There are many devices where Java is currently used. Desktop Applications Web Applications Enterprise Applications Mobile App Embedded System Smart Card Robotics Games, etc. • Features of Java Simple Object – oriented Portable Platform Independent Robust Architecture neutral Interpreted High Performance Multi threated Distributed Dynamic Secured
  • 6. Oops Concept Class Object Inheritance Polymorphism Abstraction Encapsulation An entity that has state and behavior is known as an object. A class is a group of objects which have common properties. It is a blueprint from which objects are created.
  • 7. Inheritance in Java • Inheritance in Java is a mechanism in which one object acquires all the properties and behaviors of a parent object. • The idea behind inheritance in Java is that you can create new classes that are built upon existing classes • Types of inheritance in java 1. Single 2. Multilevel 3. Hierarchical 4. Multiple 5. Hybrid
  • 8. Polymorphism in Java Polymorphism in Java is a concept by which we can perform a single action in different ways. There are two types of polymorphism in Java: Compile-time polymorphism Runtime polymorphism. Encapsulation in java Encapsulation in Java is a process of wrapping code and data together into a single unit. We can create a fully encapsulated class in Java by making all the data members of the class private. Advantage of Encapsulation in Java Control over data Data Hiding. Easy and fast to create an encapsulated class in Java. Easy to Test.
  • 9. Abstraction in java Abstraction is a process of hiding the implementation details and showing only functionality to the user. • There are two ways to achieve abstraction in java • Abstract class (0 to 100%) • Interface (100%) Packages in java • A java package is a group of similar types of classes, interfaces and sub-packages. • Package in java can be categorized in two form Built-in package ex. java.util, java.lang etc User-defined package.
  • 10. Exception Handling in Java • The Exception Handling in Java is one of the powerful mechanism to handle the runtime errors so that normal flow of the application can be maintained. Java Exception Keywords
  • 11. Java Applet • Applet is a special type of program that is embedded in the webpage to generate the dynamic content. It runs inside the browser and works at client side. Advantage of Applet • It works at client side so less response time. • Secured • It can be executed by browsers running under many plateforms, including Linux, Windows, Mac Os etc. Lifecycle of Applet • Applet is initialized. • Applet is started. • Applet is painted. • Applet is stopped. • Applet is destroyed.
  • 12. Servlets • Servlet technology is used to create a web application (dynamic web). • Advantages of Servlet over CGI Performance Robust Secure Portability Life Cycle of a Servlet • Servlet class is loaded. • Servlet instance is created. • init method is invoked. • service method is invoked. • destroy method is invoked.
  • 13. JSP (Java Servlet Page) • JSP technology is used to create web application just like Servlet technology • A JSP page consists of HTML tags and JSP tags. The JSP pages are easier to maintain than Servlet because we can separate designing and development. • Advantage of JSP over Servlet Extension to Servlet Easy to maintain Less code than Servlet No need to recompile • JSP Scripting elements The scripting elements provides the ability to insert java code inside the JSP. Scriptlet tag used to execute java source code in JSP Declaration tag used to declare fields and methods. Expression tag used to print the values of variable or method
  • 14. JDBC(Java Database Connectivity) • We can use JDBC API to access tabular data stored in any relational database. By the help of JDBC API, we can save, update, delete and fetch data from the database. • There are four types of JDBC drivers: • JDBC-ODBC Bridge Driver, • Native Driver, • Network Protocol Driver, and • Thin Driver • Java Database Connectivity with 5 Steps • Register the Driver class • Create connection • Create statement • Execute queries • Close connection
  • 15. Java Security • java.security package provide a brief management of security concern . It have AccessControlContext , AllPermission , Permission , more classes. • Static Data Typing: Java is a statically typed language, which reduces the possibilities of run-time detection of type-related errors • Access Modifiers: Java allows us to use different access modifiers like public and private to control access to fields, methods, and classes • Automatic Memory Management: Java has garbage-collection based memory management, which frees developers from managing this manually • Bytecode Verification: Java is a compiled language, which means it converts code into platform- agnostic bytecode, and runtime verifies every bytecode it loads for execution Java Cryptography • The Java Cryptographic Architecture (JCA) provides a framework to access and implement cryptographic functionalities in Java, including: Digital signatures Message digests Symmetric and asymmetric ciphers Message authentication codes Key generators and key factories
  • 16. Project • We practice multiple small program and creating web page like Biodata form , Resume Form ,Desktop Application etc. • Mini Project Online management System in JSP. • Another a small Online product Sale Website.