Introduction To Java
Introduction To Java
(INTRODUCTION)
BY: DR. AMAN TYAGI
DEPARTMENT OF COMPUTER SCIENCE & ENGINEERING
Java - An Introduction
Year Development
1990 Sun decided to developed special software that could be used for
electronic devices. A project called Green Project created and
headed by James Gosling.
1991 Explored possibility of using C++, with some updates announced a
new language named “Oak”
1993 The World Wide Web appeared on the Internet and transformed the
text-based interface to a graphical rich environment. The team
developed Web applets (time programs) that could run on all types
of computers connected to the Internet.
Java Milestones
Year Development
1994 The team developed a new Web browsed called “Hot Java” to
locate and run Applets. HotJava gained instance success.
Java is object-oriented.
This allows you to create modular programs(different functions) and
reusable code.
Java is platform-independent.
One of the most significant advantages of Java is its ability to move
easily from one computer system to another. The ability to run the
same program on many different systems is crucial to World Wide
Web software, and Java succeeds at this by being platform-
independent at both the source and binary levels.
Importance of Java to the Internet
Bytecode is program code that has been compiled from source code
into low-level code designed for a software interpreter. It may be
executed by a virtual machine (such as a JVM) or further compiled into
machine code, which is recognized by the processor.
Different types of bytecode use different syntax, which can be read and
executed by the corresponding virtual machine. A popular example is
Java bytecode, which is compiled from Java source code and can be
run on a Java Virtual Machine (JVM). While it is possible to write bytecode
directly, it is much more difficult than writing code in a high-level
language, like Java. Therefore, bytecode files, such as Java .CLASS files,
are most often generated from source code using a compiler, like javac.
Basic Concepts of OOPS
Encapsulation
Abstraction
Polymorphism
Inheritance
Encapsulation:
Bifurcation of polymorphism
Thus, polymorphism means more than one form.
Polymorphism provides a way for an entity to behave in several
forms.
Inheritance:
Inheritance is the mechanism of deriving a new class from the earlier existing
class.
The inheritance provides the basic idea of reusability in object-oriented
programming.
The new class inherits the features of the old class.
The old class and new class is called (given as pair)
base-derived, parent-child, super-sub.
The inheritance supports the idea of classification.
END