History of Java
History of Java
HISTORY OF JAVA
Presented
By
22321A1285-R.SANJANA
S Revathi Dr C Murugamani
Co-ordinator HOD
HISTORY OF
JAVA
Contents:
• Definition
• History of Java
• Java Features
• Java Variables
• Data Types
1.Integers
2.Floating-Point
3.Boolean
4.Characters
• Operators
Definition:
• This language was initially called “Oak,” but was renamed
“Java” in 1995. Between the initial implementation of Oak in
the fall of 1992 and the public announcement of Java in the
spring of 1995, many more people contributed to the design
and evolution of the language. The original reason for
creation of Java was not the Internet! Instead, the primary
motivation was the need for a platform-independent (that is,
architecture-neutral) language that could be used to create
software to be embedded in various consumer electronic
devices, such as microwave ovens and remote controls.
History of Java:
• 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.
Java Features:
• The primary objective of Java programming language
creation was to make it portable, simple and secure
programming language. Apart from this, there are also some
excellent features which play an important role in the
popularity of this language. The features of Java are also
known as Java buzzwords.
• A list of the most important features of the Java language is
given below.
• Simple
• Object-Oriented
• Portable
• Platform independent
• Secured
• Robust
• Architecture neutral
• Interpreted
• High Performance
• Multithreaded
• Distributed
• Dynamic
• Simple :Java was designed to be easy for the professional
programmer to learn and use effectively. If the basic concepts
of object-oriented programming is understood, learning Java
will be even easier.
• Object-Oriented:Java is an object-oriented programming
language. The object model in Java is simple and easy to
extend, while primitive types, such as integers, are kept as
high-performance non objects.
• Portable:Portability is a major aspect of the Internet because
there are many different types of computers and operating
systems connected to it.
• Security:Every time a “normal” program is downloaded, there is a
risk, because the code that is downloading might contain a virus,
Trojan horse, or other harmful code. At the core of the problem is the
fact that malicious code can cause its damage because it has gained
unauthorized access to system resources.
• Robust:The ability to create robust programs was given a high priority
in the design of Java. Java frees you from having to worry about many
of the most common causes of programming errors. Because Java is a
strictly typed language, it checks your code at compile time.
• Architecture-Neutral: A central issue for the Java designers was that of
code longevity and portability. One of the main problems facing
programmers is that no guarantee exists that if you write a program
today, it will run tomorrow even on the same machine.
• Interpreted and High Performance:Java enables the creation of cross-
platform programs by compiling into an intermediate representation
called Java bytecode. This code can be executed on any system that
implements the Java Virtual Machine.
• Multithreaded:Java was designed to meet the real-world requirement
of creating interactive, networked programs. To accomplish this, Java
supports multithreaded programming, which allows you to write
programs that do many things simultaneously.
• Distributed:Java is designed for the distributed environment of the
Internet because it handles TCP/IP protocols. In fact, accessing a
resource using a URL is not much different from accessing a file.
• Dynamic: Java programs carry with them substantial amounts of run-
time type information that is used to verify and resolve accesses to
objects at run time.
Java Variables:
Variables are containers for storing data values.
In Java, there are different types of variables, for example:
String- stores text, such as "Hello". String values are surrounded by
double quotes
int- stores integers (whole numbers), without decimals, such as 123 or -
123
float-stores floating point numbers, with decimals, such as 19.99 or -
19.99
char- stores single characters, such as 'a' or 'B'. Char values are
surrounded by single quotes
Boolean - stores values with two states: true or false
Data Types:
• Java defines eight primitive types of data: byte, short, int, long, char,
float, double, and Boolean . The primitive types are also commonly
referred to as simple types, and are classified into four groups:
1.Integers
2.Floating-Point
3.Boolean
4.Characters.
• Integers: Java defines four integer types: byte, short, int, and long. All
of these are signed, positive and negative values. Java does not support
unsigned, positive-only integers. The size and ranges of these integer
types are as follows: