What is Java?
An Object-Oriented Language
Java is an object-oriented language similar to C++, but simplified to eliminate language features that cause common programming errors. Java source code files (files with a .java extension) are compiled into a format called bytecode (file s with a .class extension), which can then be executed by a Java interpreter. Compiled Java code can run on most computers because Java interpreters and runtime environments, known as Java Virtual Machines (VMs), exist for most operating systems, including UNIX, the MacintoshOS, and Windows. Bytecode can also be converted directly into machine language instructions by a just-in-time compiler (JIT). In 2007, most Java technologies were released under the GNU General Public License.
Java on the Web
Java is a general purpose programming language with a number of features that make the language well suited for use on the World Wide Web. Small Java applications are called Java applets and can bedownloaded from a Web server and run on your computer by a Java-compatible Web browser.
Applications and websites using Java will not work unless Java is installed on your device. When you download Java, the software contains the Java Runtime Environment (JRE) which is needed to run in a Web browser. A component of the JRE, the Java Plug-in software allows Java applets to run inside various browsers.
Java is a high-level programming language developed by Sun Microsystems. It was originally designed for developing programs for set-top boxes and handheld devices, but later became a popular choice for creating web applications.
Advantages and Disatvantages of Java
Advantages of Java
Java give an advantages to developers:
- Java is Object-Oriented: Java is object-oriented because programming in Java is centered on creating objects, manipulating objects, and making objects work together. This allows you to create modular programs and reusable code.
- Java is Platform-Independent: One of the most significant advantages of Java is its ability to move easily from one computer system to another.
- Java is Distributed: Distributed computing involves several computers on a network working together. Java is designed to make distributed computing easy with the networking capability that is inherently integrated into it.
- Java is Secure: Java is one of the first programming languages to consider security as part of its design. The Java language, compiler, interpreter, and runtime environment were each developed with security in mind.
- Java is Robust: Robust means reliable and no programming language can really assure reliability. Java puts a lot of emphasis on early checking for possible errors, as Java compilers are able to detect many problems that would first show up during execution time in other languages.
Disadvantages of Java
- Performance: Java can be perceived as significantly slower and more memory-consuming than natively compiled languages such as C or C++.
- Look and feel: The default look and feel of GUI applications written in Java using the Swing toolkit is very different from native applications. It is possible to specify a different look and feel through the pluggable look and feel system of Swing. Sun is working in this area and we can see some great technologies from Sun in near future.
- Single-paradigm language: Java is predominantly a single-paradigm language. However, with the addition of static imports in Java 5.0 the procedural paradigm is better accommodated than in earlier versions of Java.
Sources by :