Java is a programming language originally developed by James Gosling at Sun Microsystems (which has since merged into 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 it has fewer low-level facilities than either of them. Java applications are typically compiled to bytecode (class file) that can run on any Java virtual machine (JVM) regardless of computer architecture. Java is a general-purpose, concurrent, class-based, object-oriented language that is specifically designed to have as few implementation dependencies as possible. It is intended to let application developers "write once, run anywhere" (WORA), meaning that code that runs on one platform does not need to be recompiled to run on another. Java is as of 2012 one of the most popular programming languages in use, particularly for client-server web applications, with a reported 10 million users
The advantages of Java are as follows:
Java is a high-level programming language and powerful software platform. On full implementation of the Java platform gives you the following features:
Platform is cross-combination of hardware or software environment in which a program runs. We are already known with the most popular platform like Microsoft Windows, Linux, Solaris OS, and Macintoshes OS. The Java platform differs from other platforms, that is only software-only platform which runs on other hardware-based platforms.
The Java platform has two components:
Google
Google and Android, Inc. have chosen to use Java as a key pillar in the creation of the Android operating system, an open-source smartphone operating system. Besides the fact that the operating system, built on the Linux 2.6 kernel, was written largely in C, the Android SDK uses Java to design applications for the
Android platform.
The advantages of Java are as follows:
- Java is simple, easy to design , easy to write, and therefore easy to compile, debug, and learn than any other programming languages.
- Java is object-oriented, that is used to build modular programs and reusable code in other application.
- Java is platform-independent and flexible in nature. The most significant feature of Java is to run a program easily from one computer system to another.
- Java works on distributed environment. It is designed to work on distributed computing , Any network programs in Java is same as sending and receiving data to and from a file.
- Java is secure. The Java language, compiler, interpreter and runtime environment are securable .
- Java is robust. Robust means reliability. Java emphasis on checking for possible errors, as Java compilers are able to detect many error problem in program during the execution of respective program code.
- Java supports multithreaded. Multithreaded is the path of execution for a program to perform several tasks simultaneously within a program. The java come with the concept of Multithreaded Program. In other languages, operating system-specific procedures have to be called in order to work on multithreading.
Java is a high-level programming language and powerful software platform. On full implementation of the Java platform gives you the following features:
- JDK Tools: The
JDK tools provide compiling, Interpreter, running, monitoring, debugging, and
documenting your applications. The main tools
used are the
Javac
compiler, thejava
launcher, and thejavadoc
documentation tool. - Application Programming Interface (API): The API provides the core functionality of the Java programming language. It gives a wide collection of useful classes, which is further used in your own applications. It provides basic objects and interface to networking and security, to XML generation and database access, and much more.
- Deployment Technologies: The JDK software provides two type of deployment technology such as the Java Web Start software and Java Plug-In software for deploying your applications to end users.
- Graphical User Interface Toolkits: The Swing and Java 2D toolkits provide us the feature of Graphical User Interfaces (GUIs).
- Integrated Libraries: Integrated with various libraries such as the Java IDL API, JDBC API, Java Naming and Directory Interface TM ("J.N.D.I.") API, Java RMI, and Java Remote Method Invocation over Internet Inter-ORB Protocol Technology (Java RMI-IIOP Technology) enable database to access and changes of remote objects.
- Easy to Start: Since Java programming language is completely based on object-oriented language, it's easy very simple and easy to learn, especially for programmers already known with C or C++.
- Easy to write code: As compared to program metrics (class counts, method counts, and so on) tell us that a program written in the Java programming language can be four times smaller as compare to the same program written in C++.
- Write better code: The Java programming language encourages good coding practices, and manages automatic garbage collection which helps you avoid memory leaks. Based on the concept of object orientation, its Java Beans component architecture, and wide-range, easily extendible, flexibility and API can reuse existing, tested code and introduce fewer bugs.
- Develop programs and Time Safer: The Java programming language is easier and simpler than C++, as such, manages your development time upto twice as fast when writing in it. The programs will also require fewer lines of code.
- Platform Independencies: The program keep portable and platform independent by avoiding the use of libraries written in other languages.
- Write Once and Used in any Java Platform : Any Source code of Program are written in the Java programming language, that is compiled into machine-independent byte codes and run consistently on any platform of java.
- Distribute software makes work easy : Using Java Web Start software, users will be able to launch own applications with a single click on mouse. An automatic version check initially weather users are always up to date with the latest version of your software. If an update is available for it, the Java Web Start software will automatically update their installation.
Platform is cross-combination of hardware or software environment in which a program runs. We are already known with the most popular platform like Microsoft Windows, Linux, Solaris OS, and Macintoshes OS. The Java platform differs from other platforms, that is only software-only platform which runs on other hardware-based platforms.
The Java platform has two components:
- The Java Virtual Machine(JVM)
- The Java Application Programming Interface (API)
Special classes
Applet
Servlet
JavaServer Pages
Swing application
Generics
Use by external companies
Android platform.