3 Introduction Histor, Appl Ed, Ver, Fea, Arch (Unit 1)
3 Introduction Histor, Appl Ed, Ver, Fea, Arch (Unit 1)
Core JAVA
CONTENTS
Introduction To Java
History
Applications
Editions and Versions
Features and Architecture
INTRODUCTION TO
JAVA
• JAVA was developed by Sun Microsystems Inc in 1991, later acquired by Oracle Corporation.
• It was developed by James Gosling and Patrick Naughton.
• It is a simple programming language.
• Java makes writing, compiling, and debugging programming easy.
• It helps to create reusable code and modular programs.
• It is a general-purpose programming language made for developers to write once run anywhere
ie. compiled Java code can run on all platforms that support Java.
• Java applications are compiled to byte code that can run on any JVM.
2) Initially designed for small, embedded systems in electronic appliances like set-top boxes.
3) Firstly, it was called "Greentalk" by James Gosling, and the file extension was .gt.
4) After that, it was called Oak and was developed as a part of the Green project.
5) Oak is a symbol of strength and chosen as a national tree of many countries like the U.S.A., France, Germany,
Romania, etc.
6) In 1995, Oak was renamed as "Java" because it was already a trademark by Oak Technologies.
7) In 1995, Time magazine called Java one of the Ten Best Products of 1995.
4) JavaFX
It is used to develop rich internet applications.
It uses a light-weight user interface API.
JAVA VERSIONS
Versions of Java released till date: Version Year
JDK Alpha and Beta 1995
JDK 1.0 1996
JDK 1.1 1997
J2SE 1.2 1998
J2SE 1.3 2000
J2SE 1.4 2002
J2SE 5.0 2004
Java SE 6 2006
Java SE 7 2011
Java SE 8 2014
Java SE 9 2017
Java SE 10 2018
FEATURES OF JAVA
Cont…
1. Object-Oriented: Everything in Java is an object. OO means we organize our software as a
combination of different types of objects that incorporates both data and behavior.
2. Simple: very easy to learn, simple syntax, clean and easy to understand. Removed many
complicated and rarely-used features: pointers, operator overloading, etc.
3. Portable: It facilitates us to carry Java bytecode to any platform. Doesn't require any implementation.
4. Secured
we can develop virus-free systems. Java is secured because:
•No explicit pointer
•Java Programs run inside a virtual machine sandbox
5) Platform independent: Java code can be run on multiple platforms(i.e., Write Once and Run Anywhere(WORA).
Ex. Windows, Linux, Sun Solaris, Mac/OS, etc
6) Robust(means strong)
Strong memory management.
• No pointers that avoids security problems.
• Automatic garbage
•Exception handling & the type checking mechanism
JAVA ARCHITECTURE
First Java Program | Hello World Example
class First{
public static void main(String args[]){
System.out.println("Hello Java");
}
}
save this file as First.java