Upload
ashiqure-rahman
View
4
Download
0
Embed Size (px)
Citation preview
IUBAT- International University Of Business Agriculture And Technology
Mid Term CSE Presentation
Name: Md. Ashiqure RahmanID: 17105009
Program: BsEEE
1
2
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
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
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 etc5
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
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");
}}
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 Member2- Method3- Constructor 4- Block5- Class6- Interface
8
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
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.
DATA Types
Basically two types of data type : 1. Primitive 2. Non-Primitive
11
Do You Have Any Question
?
12
Thank You
13