JAVA Tutorials: by Rajaram Parab
JAVA Tutorials: by Rajaram Parab
By Rajaram Parab
Simple
Object oriented
Distributed
Multithreaded
Dynamic
Architecture neutral
Portable
High performance
Robust
Secure
In the Java programming language, all source code is first written in plain text files ending with
the.javaextension. Those source files are then compiled into.classfiles by thejavaccompiler.
A.classfile does not contain code that is native to your processor; it instead containsbytecodes
the machine language of the Java Virtual Machine1(Java VM). Thejavalauncher tool then runs your
application with an instance of the Java Virtual Machine.
You've already been introduced to the Java Virtual Machine; it's the base for
the Java platform and is ported onto various hardware-based platforms.
The API is a large collection of ready-made software components that provide many useful
capabilities. It is grouped into libraries of related classes and interfaces; these libraries are
known aspackages. The next section,What Can Java Technology Do?highlights some of the
functionality provided by the API.
As a platform-independent environment, the Java platform can be a bit slower than native
code. However, advances in compiler and virtual machine technologies are bringing performance
close to that of native code without threatening portability.
The terms"Java Virtual Machine" and "JVM" mean a Virtual Machine for the Java platform.
Write better code: The Java programming language encourages good coding
practices, and automatic garbage collection helps you avoid memory leaks. Its
object orientation, its JavaBeans component architecture, and its wideranging, easily extendible API let you reuse existing, tested code and
introduce fewer bugs.
Develop programs more quickly: The Java programming language is simpler than
C++, and as such, your development time could be up to twice as fast when
writing in it. Your programs will also require fewer lines of code.
Avoid platform dependencies: You can keep your program portable by avoiding
the use of libraries written in other languages.
Distribute software more easily: With Java Web Start software, users will be
able to launch your applications with a single click of the mouse. An automatic
version check at startup ensures that users are always up to date with the latest
version of your software. If an update is available, the Java Web Start software
will automatically update their installation.