Sunteți pe pagina 1din 48

Introductio n to Java

Java is a p ro gr am ming lang uage original ly developed by Ja mes G os ling atSun

Microsystems(whi ch is now asubsidiary of Ora cle Corporation ) and released in 1995 as a corecomponent of Sun Microsystems'Java

platform.Java is a high-level objectoriented programming language developed by Sun Microsystems.Itw as only developed keeping in mind the consumer

electronics and communication equipments. Itcame into existence as a part of web application, web services and a platform independent progr

amming language in 1990s.Earlier, C++ was widely used to write object oriented programming languages , however,it wasnot a platform independent and

needed to be recompiled for each different CPUs. A team of SunMicrosystems in the guidance of James Goslings decided to develop an advanced programminglangu

age for the betterment of consumer electronic devices. In the year 1991 they make a platform independent software and named it Oak. But

later due to some patent conflicts , it wasrenamed as Java and in 1995 the Java 1.0 was officially released to the world.It promised "Wr ite Once , Run An yw he re "

(WORA), providing no-cost run-times on popular platfo rms.

Features Of Java
1.

Simple We wanted to build a system that could be programmed easily without a lot of esoterictraining and which leveraged todays standard practice.

So even though we found that C++ wasunsuitable, we designed Java as closely to C++ as possible in order to make the system morecomprehensib le. Java omits

many rarely used, poorly understood, confusing features of C++ that,in our experience, bring more grief than benefit. 2. Object Oriented

Simply stated, object-oriented design is a technique for programming that focuses on the data (=objects) and on the interfaces to that object. To make an analogy

with carpentry, an object-oriented carpenter would be mostly concerned with the chair he was building, and secondarilywith the tools used to make it; a nonobjectorientedcar

penter would think primarily of his tools.The objectoriented facilities of Java are essentially those of C++.

3.
Robust Java is intended for writing programs that must be reliable in a variety of ways. Java puts a lot

of emphasis on early checking for possible problems, later dynamic (runtime) checking, andeliminating situations that are error-prone. . . .

The single biggest difference between Java andC/C++ is that Java has a pointer model that eliminatesthe possibility of overwriting memory

andcorrupting data.4.
Secure Java is intended to be used in networked/distrib uted environments. Toward that end, a

lot of emphasis has been placed on security. Java enables the construction of virus-free, tamperfreesystems . 5.

Portable Unlike C and C+ +, there are no implementationdependent aspects of the specification. Thesizes of the primitive data types are specified,

as is the behavior of arithmetic on them.6.


Interpreted The Java interpreter can execute Java bytecodes directly on any machine to

which the interpreter has been ported. Since linking is a more incremental and lightweight process, the development proce ss can be much

more rapid and exploratory.7.


High Performance While the performance of interpreted bytecodes is usually more than adequate, there

aresituations where higher performance is required. The bytecodes can be translated on the fly (atruntime) into machine code for the particular CPU

the application is running on.

8.
Multithreaded [The] benefits of multithreading are better interactive responsiveness and real-time behavior

. 9. Dynamic In a number of ways, Java is a more dynamic language than C or C++. It was designed to adapt toan evolving

environment. Libraries can freely add new methods and instance variables withoutany effect on their clients. In Java, finding out runtime type

information is straightforward .

Versions Of Java
2 c s5 2 5 w 5 0 l a s 0 0 3 0 0 0 0 S l i t t s e 3 l o l e

f u f o L b e c p

a c a r o u

s h s e t g

t e r m t e r m powerful s o f s m o r

a p a b l e o w e r f u

l e a s y Ap plets very popularJ2 EE,J2SE,J 2 M E known as Tiger

Downloadi ng and Installatio n


JDK is a software development program provided

by sun Microsystems. Java Development Kitor JDK comes in Various version and can be downloaded free from the sun Microsystems. Acronyms:JDK

Java Development Kit JVM Java virtual machine Download JDk: You can download JDK from www.javasoft.com /j2se

S-ar putea să vă placă și