Chapter #1: Introduction to Java
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)?
7. Why C and C++ PLs are PD?
8. How Java achieved PI?
9. Import facts on Java program and Java software?
10. Types of Java SWs, Java 9v and 11v changes?
11. Java versions, LTS, non-LTS, Stable and Latest version?
12. Downloading and installing JDK
13. Setting JAVA_HOME, path and classpath enviroment varaibles
14. Softwares required to develop a Java program?
15. Essential Statements to develop a Java program?
14. Steps to develop Java program?
15. Hello, World! application development, compilation and execution
16. Solving CEs and REs by your own
17. Compiler and JVM activites in compiling and executing Java program
1. What is Java?
- Java is a Platform Independent
Object-Oriented Programming Language.
2. Who invented Java?
- Java is inveted by Mr. James Gosling
in Sun Microsystems in the year 1991
3. Why Java is invented?
- Java is invented for achieving Platform Independency
for supporting internet applications development.
4. What is a platform?
- A platform is an environment in which
a program is loaded and executed.
- A platform can be a software only platform
or hardware only platform of both.
- A computer platform is both SW and HW platform
it is [OS + Hardware Devices]
- C and C++ programs' platform is
software only platform that is OS
- Java programs platform is JVM (Java Virtual Machine)
- Python programs platform is PVM (Python Virtual Machine)
- HTML pages platfrom is Browser
- mp3 and mp4 files platform is VLC (Media Player Software)
5. What is platfrom dependency?
- A program that is developed and compiled in OS
if it is not executed in different OS, we call it
as platform dependent program. The programming language
that is used for developing this program is called
platform dependent programming language.
For example: C and C++
6. What is platfrom independency?
- A program that is developed and compiled in OS
if it is executed in different OS, we call it
as platform independent program. The programming language
that is used for developing this program is called
platform independent programming language.
For example: Java, Python, .Net, ...
8. Types of applications
- All softwares are divided into two types
1. Stand-alone applications (SA)
2. Internet applications (IA)
- An application that can not be accessed from other computers
via internet with network call stand-alone application. It means
an application that can be accessed only within one computer with
local call in which it is installed is called stand-alone application.
- A SA is a single computer and single user application. It means
at a time only one user can use/run this application.
For example: Calc, Notepad, Paint, PPT, Browser, Mobile app
- An application that can accessed via internet with a network call
is called internet application. An internet application can also
be accessed with in the same computer in which it is installed.
- An IA is a multi computer and multi user application. It means
at time it can be accessed and executed by multiple users.
For example: hdfcbank.com, flipkart.com, irctc.com, nareshit.com, ...