HTML Injection Attacks: Impact and Mitigation Strategies
Java
1. IUBAT- International University Of Business
Agriculture And Technology
Mid Term CSE
Presentation
Name: Md. Ashiqure Rahman
ID: 17105009
Program: BsEEE
1
3. Content
What Is Java?
Where Java is used?
Types of JAVA Application ?
First Program “Hello World”
Class in JAVA
Real Life example of Object and class
Variables and Datatypes in JAVA
DATA Types
3
4. What is java?
Java is a widely used programming language
expressly designed for use in
the distributed environment of the internet. It is
the most popular programming language for
Android smartphone applications and is among
the most favored for edge device and internet of
things development.
4
5. Where Java is used?
1. Desktop Applications such as acrobat reader, media player, antivirus etc.
2. Web Applications such as irctc.co.in, javatpoint.com etc.
3. Enterprise Applications such as banking applications.
4. Mobile
5. Embedded System
6. Smart Card
7. Robotics
8. Games etc
5
6. Types of JAVA Application
There are mainly 4 type of applications that can be created using
java programming:
1- Standalone Application- Antivirus, Media Player etc.
2- Web Application- JSP, Servlets etc. used to make web application
3- Enterprise Application- JAVA EE at business tier
4- Mobile Application. Android and JAVA ME.
6
7. First Program “Hello World”
1- open text editor and write first program
2- Save it as Hello.java
3- Open command prompt or terminal .
4- Go to the file and to compile code write “javac Hello.java” command.
5- to run “java Hello”.
7
class Hello {
public static void main (String args[])
{
System.out.println("Hello JAVA");
}
}
8. Class in JAVA
“class is the only logical entity.”
Class: Class is a blueprint which is containing only list of variables and method
and no memory is allocated for them. A class is a group of objects that has
common properties. A class in java contains:
1- Data Member
2- Method
3- Constructor
4- Block
5- Class
6- Interface
8
9. Real Life example of Object and class.
Class: vehicle
Object: car, bus, bike, truck are object
of vehicle class.
State: Color, Model, speed
Behavior: Travelling
Identity: unique number
9
10. Variables and Datatypes in JAVA
“Variable is a name of memory location or name of reserved area allocated in
memory.”
There are three types of variables in java
1- local variable 2- instance variable 3- static variable
10
A variable that is declared inside the method
is called local variable. A variable that is
declared inside the class but outside the
method is called instance variable . It is not
declared as static. A variable that is declared
as static is called static variable. It cannot be
local.