Oop 1
Oop 1
INTRODUCTION TO JAVA
Syllabus
Brief history; features; java architecture; components: JVM, JRE, JDK; Applications; Java environment
setup; Structure of java program; Compilation and execution of java program; Clean coding in java.
Introduction
Java is an object-oriented programming language and a platform.
Java is a high level, robust and secure object-oriented programming language.
Platform: Any hardware or software environment in which a program runs is known as a platform.
Since Java has its own runtime environment (JRE) and API, it is called platform.
Brief History
Java was originally designed for interactive television, but it was too advanced technology for the
digital cable television industry at the time.
Java team members (also known as Green Team), initiated this project to develop a language for
digital devices such as set-top boxes, televisions, etc.
Since it was best suited for internet programming, Java technology was incorporated by Netscape
(Mozilla Firefox).
The principles for creating Java programming were "Simple, Robust, Portable, Platform
independent, Secured, High Performance, Multithreaded, Architecture Neutral, Object Oriented,
Interpreted, and Dynamic".
Java was developed by James Gosling, who is known as the father of Java, in 1995. James Gosling
and his team members started the project in the early '90s at Sun Micro Systems (which is now a
subsidiary of Oracle Corporation) of USA.
Currently, Java is used in internet programming, mobile devices, games, e-business solutions,
Significant points,
1. James Gosling, Mike Sheridan, and Patrick Naughton initiated the Java language project in June
1991. The small team of sun engineers called Green Team.
2. Initially it was designed for small, embedded systems in electronic appliances like set-top
boxes.
3. Firstly, it was called "Green talk" 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. The team chose the name Java among the suggested names “Java”, “dynamic", "revolutionary",
"Silk", "jolt", "DNA", etc.
JAVA Features
Java has become a popular and useful programming language because of its excellent features,
which play a very important role in contributing to the popularity of this language.
The Java features are called “Java Buzzwords”.
Sun Micro Systems officially described Java with the following list of features,
1. Simple and Familiar
2. Compiled and Interpreted
Java Java interpreter, which runs applets and applications by reading and interpreting
bytecode files
Javac java compiler, which translates Java source code to bytecode files that the
interpreter can understand
Javap Java disassembler, which enables us to convert bytecode files into a program
description
Applications
Mobile Applications.
Desktop GUI Applications.
Web-based Applications.
Enterprise Applications.
Scientific Applications.
Gaming Applications.
Cloud Based Applications.
QUESTIONS