Day 5
Day 5
1. What is Java?
2. Who invented Java?
3. Why Java?
4. Platform, Platform Dependency(PD), Platform Independency(PI)?
5. Two types of applications?
6. Java concepts to develop Stand-alone(SA) and Internet Application(IA)?
1. What is Java?
- Java is a Platform Independent
Object-Oriented Programming Language.
4. What is a platform?
- A platform is an environment in which
a program is loaded and executed.
7. Types of applications
- All softwares are divided into two types
1. Stand-alone applications (SA)
2. Internet applications (IA)
Windows OS
Source code Compiled code
Addition.c Compiler Addition.exe windows -> exe -> OP
(M/C=0s and 1s)
Linux OS
Addition.exe Linux -> !exe
Mac OS
Addition.exe Mac -> !exe
Windows OS
Addition.java
Java
Compiler
Addition.class
(Byte code=Small commands)
- We have sepearte JVM for each OS for the running the same compiled
in all OS, hence Java program is PI.
Summary
- If any PL program contains MC and if it is executed directly by OS,
it is always PD.
- If any PL program does not contain MC, not directly executed by OS,
if it is executed by one intermediate software, that program is always
PI.