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

PPTX
Byte code manipulation and instrumentalization in Java
Alex Moskvin
 
PPTX
Java 1
KadarkaraiSelvam
 
PPTX
Java JVM
KadarkaraiSelvam
 
PPTX
QSpiders - Jdk Jvm Jre and Jit
Qspiders - Software Testing Training Institute
 
PPT
Hibernate introduction
Sagar Verma
 
PPTX
Features of JAVA Programming Language.
Bhautik Jethva
 
DOCX
Java Tutorial to Learn Java Programming
business Corporate
 
PPTX
Java Virtual Machine (JVM), Difference JDK, JRE & JVM
shamnasain
 
Byte code manipulation and instrumentalization in Java
Alex Moskvin
 
QSpiders - Jdk Jvm Jre and Jit
Qspiders - Software Testing Training Institute
 
Hibernate introduction
Sagar Verma
 
Features of JAVA Programming Language.
Bhautik Jethva
 
Java Tutorial to Learn Java Programming
business Corporate
 
Java Virtual Machine (JVM), Difference JDK, JRE & JVM
shamnasain
 

What's hot (19)

PDF
The Real Thing: Java Virtual Machine
Frontech
 
PDF
Java and Java platforms
Ilio Catallo
 
PPT
Advanced java
NA
 
PPTX
Java virtual machine
Dhanith Krishna
 
PPTX
Introduction to Java Programming
Saravanakumar R
 
PPTX
Advantages of java
xxx007008
 
PPT
Java-java virtual machine
Surbhi Panhalkar
 
PPT
Java introduction
Sagar Verma
 
PPT
Java & J2EE Struts with Hibernate Framework
Mohit Belwal
 
PPTX
Java fundamentals
Om Ganesh
 
PPTX
Advance Java Topics (J2EE)
slire
 
PPTX
Security Architecture of the Java platform
Martin Toshev
 
PPTX
1 java introduction
abdullah al mahamud rosi
 
PPT
A begineers guide of JAVA - Getting Started
Rakesh Madugula
 
PDF
Lec 3 01_aug13
Palak Sanghani
 
PPTX
JAVA ENVIRONMENT
josemachoco
 
PPTX
Architecture diagram of jvm
home
 
PPTX
History of java'
deepthisujithra
 
The Real Thing: Java Virtual Machine
Frontech
 
Java and Java platforms
Ilio Catallo
 
Advanced java
NA
 
Java virtual machine
Dhanith Krishna
 
Introduction to Java Programming
Saravanakumar R
 
Advantages of java
xxx007008
 
Java-java virtual machine
Surbhi Panhalkar
 
Java introduction
Sagar Verma
 
Java & J2EE Struts with Hibernate Framework
Mohit Belwal
 
Java fundamentals
Om Ganesh
 
Advance Java Topics (J2EE)
slire
 
Security Architecture of the Java platform
Martin Toshev
 
1 java introduction
abdullah al mahamud rosi
 
A begineers guide of JAVA - Getting Started
Rakesh Madugula
 
Lec 3 01_aug13
Palak Sanghani
 
JAVA ENVIRONMENT
josemachoco
 
Architecture diagram of jvm
home
 
History of java'
deepthisujithra
 
Ad

Similar to Java programming and security (20)

PPTX
Java
seenak
 
PPTX
Java PPT
Dilip Kr. Jangir
 
PPTX
1 Introduction to JAVA.pptx
Kabiles07
 
PPTX
Advance java prasentation
dhananajay95
 
PPTX
Java Programming
Elizabeth alexander
 
PDF
ACCELERATE YOUR IN JAVA
robinkumar70125
 
PPT
L1 basics
teach4uin
 
PPT
JAVA object oriented programming (oop).ppt
AliyaJav
 
PPTX
PPT on JAVA
Er Bhagat Sharma
 
PPTX
Power Point Presentation on Core Java For the Beginers
SHAQUIBHASAN2
 
PDF
Java notes
Debasish Biswas
 
PPTX
Introduction to Java
Soumya Suman
 
PPTX
Introduction to JAVA
javatrainingonline
 
PPTX
Introduction to JAVA
Mindsmapped Consulting
 
PPTX
Presentation5
Natasha Bains
 
PPT
Fundamentals of JAVA
KUNAL GADHIA
 
PPT
Chapter 1 introduction to java technology
sshhzap
 
PPT
JavaClassPresentation
juliasceasor
 
DOCX
Software environment
Kinnudj Amee
 
Java
seenak
 
1 Introduction to JAVA.pptx
Kabiles07
 
Advance java prasentation
dhananajay95
 
Java Programming
Elizabeth alexander
 
ACCELERATE YOUR IN JAVA
robinkumar70125
 
L1 basics
teach4uin
 
JAVA object oriented programming (oop).ppt
AliyaJav
 
PPT on JAVA
Er Bhagat Sharma
 
Power Point Presentation on Core Java For the Beginers
SHAQUIBHASAN2
 
Java notes
Debasish Biswas
 
Introduction to Java
Soumya Suman
 
Introduction to JAVA
javatrainingonline
 
Introduction to JAVA
Mindsmapped Consulting
 
Presentation5
Natasha Bains
 
Fundamentals of JAVA
KUNAL GADHIA
 
Chapter 1 introduction to java technology
sshhzap
 
JavaClassPresentation
juliasceasor
 
Software environment
Kinnudj Amee
 
Ad

Recently uploaded (20)

PDF
Principles of Food Science and Nutritions
Dr. Yogesh Kumar Kosariya
 
PPTX
business incubation centre aaaaaaaaaaaaaa
hodeeesite4
 
PDF
Cryptography and Information :Security Fundamentals
Dr. Madhuri Jawale
 
PPTX
Chapter_Seven_Construction_Reliability_Elective_III_Msc CM
SubashKumarBhattarai
 
PDF
EVS+PRESENTATIONS EVS+PRESENTATIONS like
saiyedaqib429
 
PDF
FLEX-LNG-Company-Presentation-Nov-2017.pdf
jbloggzs
 
PPTX
Color Model in Textile ( RGB, CMYK).pptx
auladhossain191
 
PDF
Traditional Exams vs Continuous Assessment in Boarding Schools.pdf
The Asian School
 
PDF
flutter Launcher Icons, Splash Screens & Fonts
Ahmed Mohamed
 
PDF
settlement FOR FOUNDATION ENGINEERS.pdf
Endalkazene
 
PPTX
Introduction of deep learning in cse.pptx
fizarcse
 
PDF
dse_final_merit_2025_26 gtgfffffcjjjuuyy
rushabhjain127
 
PPTX
IoT_Smart_Agriculture_Presentations.pptx
poojakumari696707
 
PDF
Unit I Part II.pdf : Security Fundamentals
Dr. Madhuri Jawale
 
PPTX
Information Retrieval and Extraction - Module 7
premSankar19
 
PPTX
Module2 Data Base Design- ER and NF.pptx
gomathisankariv2
 
PDF
Chad Ayach - A Versatile Aerospace Professional
Chad Ayach
 
PDF
July 2025: Top 10 Read Articles Advanced Information Technology
ijait
 
PPTX
MT Chapter 1.pptx- Magnetic particle testing
ABCAnyBodyCanRelax
 
PDF
67243-Cooling and Heating & Calculation.pdf
DHAKA POLYTECHNIC
 
Principles of Food Science and Nutritions
Dr. Yogesh Kumar Kosariya
 
business incubation centre aaaaaaaaaaaaaa
hodeeesite4
 
Cryptography and Information :Security Fundamentals
Dr. Madhuri Jawale
 
Chapter_Seven_Construction_Reliability_Elective_III_Msc CM
SubashKumarBhattarai
 
EVS+PRESENTATIONS EVS+PRESENTATIONS like
saiyedaqib429
 
FLEX-LNG-Company-Presentation-Nov-2017.pdf
jbloggzs
 
Color Model in Textile ( RGB, CMYK).pptx
auladhossain191
 
Traditional Exams vs Continuous Assessment in Boarding Schools.pdf
The Asian School
 
flutter Launcher Icons, Splash Screens & Fonts
Ahmed Mohamed
 
settlement FOR FOUNDATION ENGINEERS.pdf
Endalkazene
 
Introduction of deep learning in cse.pptx
fizarcse
 
dse_final_merit_2025_26 gtgfffffcjjjuuyy
rushabhjain127
 
IoT_Smart_Agriculture_Presentations.pptx
poojakumari696707
 
Unit I Part II.pdf : Security Fundamentals
Dr. Madhuri Jawale
 
Information Retrieval and Extraction - Module 7
premSankar19
 
Module2 Data Base Design- ER and NF.pptx
gomathisankariv2
 
Chad Ayach - A Versatile Aerospace Professional
Chad Ayach
 
July 2025: Top 10 Read Articles Advanced Information Technology
ijait
 
MT Chapter 1.pptx- Magnetic particle testing
ABCAnyBodyCanRelax
 
67243-Cooling and Heating & Calculation.pdf
DHAKA POLYTECHNIC
 

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.