001 - Introduction To Java
001 - Introduction To Java
Shakir Hussain
Contents
What is Java?
Terminology
2
What is Java?
High level programming language
Originally
developed by Sun Microsystems (now, Oracle),
Which was initiated by James Gosling
Java is a Platform
3
Brief history of Java
James Gosling
https://dzone.com/articles/a-short-history-of-java
https://www.javatpoint.com/history-of-java
4
The Java Programming Language
5
Java Language - Buzzwords
Platform Independent (architecture neutral)
◦ Write once run anywhere
Simple
◦ Small language, large libraries
Object Oriented
◦ Supports Abstraction, Encapsulation,
Polymorphism, Inheritance etc.
6
Java Language - Buzzwords..
Auto Garbage Collection
◦ Memory management handled by Java Virtual
Machine
Secure
◦ No memory pointers, program run inside
virtual machine
◦ Java Bytecode verification
◦ Array Index limit checking
7
Java Language – Buzzwords…
Portable
◦ Primitive data type size and their arithmetic
behavior are specified by the language.
◦ Libraries define portable interfaces
Distributed
◦ Libraries for network programming
◦ Remote method invocation
8
Java Language – Buzzwords….
Multithreaded
◦ Easy to create and use
Robust
◦ Strong memory mgmt.
Dynamic
◦ Finding runtime type information is easy.
◦ The linking of data and methods to where they are located, is
done at run-time.
◦ New classes can be loaded while a program is running.
Linking is done on the fly.
9
The Java Platform
Software-only platform that runs on top
of other hardware-based platforms.
10
Setup Dev Environment
What do you need to write and run java
program?
◦ Java Development Kit (JDK)
◦ ASCII Text Editor
11
Download JDK
https://www.oracle.com/in/java/technolog
ies/javase/javase-jdk8-downloads.html
12
Install Steps
13
Install Steps – 1st Window
14
Install Steps – 2nd Window
15
Install Steps – 3rd Window
16
Install Steps - 4th Window
17
Install Steps – 5th Window
18
Setup
Verify JDK and JRE on your hard disc.
20
Setup…
21
First Java Program
What do you need?
◦ Java Development Kit (JDK)
◦ A Text Editor