About The Java Technology
About The Java Technology
HISTORY
Java is a programming language originally developed by James Gosling at Sun Microsystems (which is now a subsidiary
of Oracle Corporation) and released in 1995 as a core component of Sun Microsystems' Java platform. The language derives much
of its syntax from C and C++ but has a simplerobject model and fewer low-level facilities. Java applications are
typically compiled to bytecode (class file) that can run on any Java Virtual Machine (JVM) regardless of computer architecture. Java
is general-purpose, concurrent, class-based, and object-oriented, and is specifically designed to have as few implementation
dependencies as possible. It is intended to let application developers "write once, run anywhere". Java is currently one of the most
popular programming languages in use, and is widely used from application software to web applications
The Java programming language is a high-level language that can be characterized by all of the following
buzzwords:
Architecture
Simple
neutral
Object
Portable
oriented
Distributed High performance
Multithreaded Robust
Dynamic Secure
In the Java programming language, all source code is first written in plain text files ending with
the .java extension. Those source files are then compiled into .classfiles by the javac compiler.
A .class file does not contain code that is native to your processor; it instead contains bytecodes — the machine
language of the Java Virtual Machine1 (Java VM). The java launcher tool then runs your application with an
instance of the Java Virtual Machine.
Because the Java VM is available on many different operating systems, the same .class files are capable of
running on Microsoft Windows, the Solaris TM Operating System (Solaris OS), Linux, or Mac OS. Some virtual
machines, such as the Java Hotspot virtual machine, perform additional steps at runtime to give your application a
performance boost. This includes various tasks such as finding performance bottlenecks and recompiling (to native
code) frequently used sections of code.
Through the Java VM, the same application is capable of
running on multiple platforms.
A platform is the hardware or software environment in which a program runs. We've already mentioned some of the
most popular platforms like Microsoft Windows, Linux, Solaris OS, and Mac OS. Most platforms can be described
as a combination of the operating system and underlying hardware. The Java platform differs from most other
platforms in that it's a software-only platform that runs on top of other hardware-based platforms.
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 as packages.
(Java Development Kit) A Java software development environment from Sun. It includes the JVM, compiler,
debugger and other tools for developing Java applets and applications. Each new version of the JDK adds features
and enhancements to the language. When Java programs are developed under the new version, the Java
interpreter (Java Virtual Machine) that executes them must also be updated to that same version.
See JFC andOpenJDK.
notepad Hello.java MS-DOS text editor, used to create and edit ASCII textfiles
ren Test1.java
Test2.java
Renames Test1.java to Test2.java
Note: if the commands in this table are not recognized by the MS-DOS command
interpreter on your system, try using the path commands listed below...
Compiles Java source file Hello.java (ASCII textfile),
javac Hello.java
produces bytecode file Hello.class (binary file)
Note: if the commands in this table are not recognized by the MS-DOS command
interpreter on your system, try using the path commands listed below...