answersLogoWhite

0

Advantages of java

Updated: 12/7/2022
User Avatar

Wiki User

11y ago

Best Answer

The advantages of Java are:

  1. 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.
  2. 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.
  3. Platform-independent: One of the most significant advantages of Java is its ability to move easily from one computer system to another, provided there is a JVM available for the new system.
  4. 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.
  5. Interpreted and Compiled: 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. Just-In-Time compilation (to platform-specific machine code) is provided by the JVM to increase performance when possible, giving most of the advantages of both interpreted and compiled languages.
  6. 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.
  7. 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. The language itself is also designed to avoid many of the common coding errors that C/C++ programmers make.
  8. 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.
  9. High Performance: despite all the negative press Java has gotten over the years for being slow, this is only part of the story. Java suffers from having a large JVM and runtime; while there are techniques that can minimize this issue, load time will always be a deficiency of Java's. However, once the programming is running, the performance of Java is at least as good as C++. In addition, moving a Java program between different processors gives a significantly larger boost to the Java program's performance than moving a similar C or C++ applications. This is because the C/C++ application was compiled to work on (and optimized for) a specific CPU. When moved onto the later CPU, the C/C++ program will not take advantage of any of the newer features of that CPU, and will require non-trivial source changes (and a recompilation) to do so. The JVM, on the other hand, is under continual development, so for a Java program, when it's moved to a new CPU platform, can immediately take advantage of all the new CPU features if the JVM installed knows about them. The end result is that a Java program "ages" better than a C/C++ one in terms of performance - that is, as the hardware underneath the program is continually upgraded, Java sees a larger percentage performance increase than either C/C++ program does.
  10. Flexible: one of the largest advantages of Java is the size of the standard library set. Java comes with a huge array of pre-written libraries, which greatly speed development time, as these libraries are immediately available for use (and have already been debugged). This is the Java "ecosystem"; it makes programmers much more efficient, since most of their time can be spent on writing the unique logic of the program, and just using the library set to perform standard functionality. Java has also attracted a huge amount of 3rd-party library work, so the possibility of finding a library which already does (and, likely does better than that developer could write it) a particular functionality is quite high. Overall, this means Java is more flexible and faster to write a program in than most other languages.
User Avatar

Wiki User

11y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: Advantages of java
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

What are the advantages and disadvantages event handler to event properties?

what are the advantages and dis advantages of event handling in java


Is java better than vbnet?

Java is not better than VBNet, nor is VBNet better than Java. Eachone has its advantages and disadvantaged over the other one.


What are the advantages of jsp?

Some advantages are:SimpleEasy to learn and useProvides rich UI features through support for CSS, HTML and Java ScriptProvides support for business logic through support for java code


Is Java better than Adobe Flash player?

Java and Flash Player are used for different purposes. They both have their advantages and disadvantages.


What are the advantages of using a Java Hashmap?

One of the advantages to using a Java Hashmap is that it allows one to use null values in it. Another advantage is its speed by splitting data into many 'buckets' and reducing the length of search times.


What are the advantages of java 6 over java 5?

Java 6 has some major improvements over Java 5. Apart from the addition of additional coding libraries, it is compatible with more websites and still supported by Oracle, unlike the older version.


What are the advantages and disadvantages of Enterprise Java Beans?

The advantage of Enterprise Java Beans is that they standardize coding thus expediting the fulfillment of application requirements. The disadvantage of Enterprise Java Beans is that their integration into an application is often complex and challenging.


What the advantages of using the Java Collection Framework?

The main advantage is that you don't have to implement those collections yourself. Java provides very efficient implementations for dozens of collections.


What are the advantages of different java datatypes?

The Basic data types in Java arebyteint (Integer)longdoublefloatcharshortThe String type is an object.StringTo learn more about Java go to:[http://java.sun.com/docs/books/tutorial/java/index.html]


Advantages of C over C plus plus and java?

C can be faster than C++ programs, and definitely faster than Java, since Java is primarily interpreted. C is also somewhat less rigid in definitions as well, not as tightly structured as either C++ or Java can be.


Gather and Summarize reasons why Java must be studied and used?

Java is a programming language that has a lot of advantages to learn and use. Firstly, it is easy to learn. Then it has powerful development tools such as eclipse and netbeans. It is free to download. It ensures safety and security of Java applications.


Why net is better than java?

I suppose both have their advantages, and their disadvantages. Java is designed for multiple platforms; .NET is more focussed on Windows. There is, however, a "Mono" project that gives .NET certain compatibility with Linux.