Day 8
Day 8
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)
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.
- Hence
- In Developer system we must install JDK
- In Testers and customers system we must install JRE
14. Java Versions history, LTS, non-LTS, stable and latest version
1. A version is a unique number (it can be alpha numberic number)
using which a product new features are identified.
==============================================================================
Java Software Principle Products Editions
==============================================================================
Java 1.0 jdk 1.0 jre 1.0
Java 1.1 jdk 1.1 jre 1.1
Java 2 Platform 1.2 j2sdk 1.2 j2sre 1.2 J2SE, J2EE, J2ME
Java 2 Platform 1.3 j2sdk 1.3 j2sre 1.3 J2SE, J2EE, J2ME
Java 2 Platform 1.4 j2sdk 1.4 j2sre 1.4 J2SE, J2EE, J2ME
Java Platform 5.0 jdk 1.5 jre 1.5 Java SE, Java EE, Java ME
Java Platform 6 jdk 1.6 jre 1.6 Java SE, Java EE, Java ME,
Java FX
Java Platform 7 jdk 1.7 jre 1.7 Java SE, Java EE, Java ME,
Java FX
Java Platform 8(LTS) jdk 1.8 jre 1.8 Java SE, Java EE, Java ME,
Java FX
Java Platform 9 jdk-9 jre-9 Java SE, Java EE, Java ME, Java FX
Java Platform 10 jdk-10 jre-10 Java SE, Java EE, Java ME, Java FX
Java Platform 11(LTS) jdk-11 Java SE, Java EE, Java ME,
Java FX
.....
Java Platform 17(LTS) jdk-17 Java SE, Java EE, Java ME,
Java FX
.....
Java Platform 20 jdk-20 Java SE, Java EE, Java ME, Java FX
Java Platform 21(LTS) jdk-21 Java SE, Java EE, Java ME,
Java FX
===================================================================================
======
===================================================================================
======
Among all these editions we are here to learn to only
1. Java SE - for developing stand-alone appliations
2. Java EE - for developing Web and enterprise appliations
For get Java EE concepts and for developing web and enterpise applications
in addition to JDK we must also install "Web Server Software" [tomcat]
===================================================================================
======
16. Why we dont install JRE is in our computers when we access any Java
website(ex:amazon)?
- because the UI componets are developed by using HTML, CSS, JS
- for running HTML pages, JRE is not required, just browser is enough
15. Why public JRE is removed in Java 11v, why is it not required?
- because UI components are developed by using HTML
- Java is not used to developing UI components
- Hence a separate JRE is useless, hence it is removed
from Java 11v onwards.
===================================================================================
======