Lecture 1
Lecture 1
(Elective-1)
Lecture 1
Today’s Agenda
An Introduction to JAVA
• Necessity Of Programming
• What Is Java ?
• Important Features
• History Of Java
• Java Ecosystem
Why Do We Need Programming ?
Platform Independence
Technology
Platform Independence
PLATFORM
A Platform is an environment in which a program runs.
In simple terms it is combination of Operating system
and Processor.
Platform Operating
System Processor
Windows Windows(32
Mac Linux
(32 bit) bit)
Windows (64
Linux Mac Linux
bit)
Windows Windows(32
Mac Linux
(32 bit) bit)
Windows (64
Linux Mac Linux
bit)
Source Code
Compiler
Machine
Code Windows Linux
Program Execution in JAVA
Source Code
Compiler
Byte Code
JVM JVM JVM
MacOS
Windows Ubuntu
QUIZ 3
❑ Generates bytecode
❑ True
❑ False
QUIZ 5
❑ True
❑ False
Important Features
Platform Independent
Secure
Robust
Simple
Multithreaded
Distributed
Important Features
Platform Independent
A platform is the environment in which an application
runs.
For example:
Windows 8+Intel - Core i5 (is a diff. platform)
Linux + AMD -A6(is another diff platform)
Mac + Intel -Core i3(is yet another diff
platform)
Important Features
class HelloWorld {
public static void main(String args[ ]) {
System.out.println(“Hello World!”);
} Java Program
}
Compiler
Hello
Hello Hello
World!
World! World!
Secure
Robust
int arr[5];
int i;
for(i=0;i<=9;i++)
{
arr[i]=i+1; // Unpredictable, after i is 5
}
Important Features
Simple
Object Oriented
Encapsulation
Inheritance
Polymorphism
Abstraction
Important Features
Multithreaded
❑ True
❑ False
main()
{
clrscr();
factorial(5);
prime(8);
evenodd(4);
}
.
.
.
Important Features
Distributed
https://softjourn.com/insights/is-java-still-used
Where Java Stands Today ?