13
Of Business Agriculture And Technology Mid Term CSE Presentation Name: Md. Ashiqure Rahman ID: 17105009 Program: BsEEE 1

Java

Embed Size (px)

Citation preview

Page 1: Java

IUBAT- International University Of Business Agriculture And Technology

Mid Term CSE Presentation

Name: Md. Ashiqure RahmanID: 17105009

Program: BsEEE

1

Page 2: Java

2

Page 3: Java

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

Page 4: Java

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

Page 5: Java

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

Page 6: Java

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

Page 7: Java

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");

}}

Page 8: 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

Page 9: Java

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

Page 10: Java

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.

Page 11: Java

DATA Types

Basically two types of data type : 1. Primitive 2. Non-Primitive

11

Page 12: Java

Do You Have Any Question

?

12

Page 13: Java

Thank You

13