Академический Документы
Профессиональный Документы
Культура Документы
1 Introduction to Java
Introduction to Java
The Java programming language was developed by James Gosling for Sun
MicroSystems. Java 1.0 was released in 1996. Java Programs are written in plain text
files using Notepad or an Integrated Development Environment (IDE) tool such as
Eclipse. The source code file is saved with an extension .java. The source file is
compiled using javac compiler that generates a class file with extension .class. A
.class file contains the bytecode the machine language of the Java Virtual Machine
(JVM). The java launcher tool then runs the application with an instance of the JVM.
Javac compiles the java code to a bytecode, which is run by a Java Virtual
Machine, unlike conventional languages which are generally designed either to be
compiled to native (machine) code, or to be interpreted from source code at runtime.
The following are some characteristics of the Java language:
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.
Advantages of Java
Java has significant advantages over the other languages. The following are
some advantages of using Java:
Java is platform-independent
Architecture neutral A Java program will run on any platform that supports the
Java run-time system.
Portable
High performance The Javas bytecode is translated to native machine
instructions.