Saturday, August 30, 2008

Java Advantages and Disadvantages

JAVA offers a number of advantages to developers.

Java is Simple: Java was designed to be easy to use and is therefore easy to write, compile, debug, and learn than other programming languages. The reason that why Java is much simpler than C++ is because Java uses automatic memory allocation and garbage collection where else C++ requires the programmer to allocate memory and to collect garbage.

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.

The ability to run the same program on many different systems is crucial to World Wide Web software, and Java succeeds at this by being platform-independent at both the source and binary levels.

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 Interpreted: An interpreter is needed in order to run Java programs. The programs are compiled into Java Virtual Machine code called bytecode. The bytecode is machine independent and is able to run on any machine that has a Java interpreter. With Java, the program need only be compiled once, and the bytecode generated by the Java compiler can run on any platform.

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.

Java is Multithreaded: Multithreaded is the capability for a program to perform several tasks simultaneously within a program. In Java, multithreaded programming has been smoothly integrated into it, while in other languages, operating system-specific procedures have to be called in order to enable multithreading. Multithreading is a necessity in visual and network programming.

Java has few Disadvantages, as there must be a scope for the improvement.

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.

5 comments:

Gary said...
This comment has been removed by a blog administrator.
Pravin said...

I want to share some most important advantages and dis advantages of using java and I share some basic good practice in java.

Visit this link

http://blog.smart7tech.com/java-performance-keys/

Sushil Das said...

Disadvantage of Java :
Checked Exceptions
Thread.currentThread().stop(e)
Using static
Singletons
Get a library or framework
Using double
Using null values
These all points are comes in disadvantage of Java. How ?
You can read full article from Geek On Java - Hub for Java and Android

Jerick said...

Cool

hetvi sanghavi said...

I want advantages and features separately