Advantage and Disadvantage of Java

Categories: Core Java

Java is a platform independent that program can write once and run on any operating system or any hardware.

Java is simple: Java is simple If you already understand the basic concepts of object-oriented programming, learning Java will be even easier.if you are an experiencedmC++ programmer, moving to Java will require very little effort. Because Java inherits the C/C++ syntax and many of the object-oriented features of C++. java design is easy to uses , java is easy to write, compile and debug and learn than other programming languages. Java uses automatic memory allocation and garbage collection else C++ requires the programmer to allocate memory and to collect garbage so these languages are more complex.

Java is object oriented: Java is object oriented programming. Java is cantered on creating objects, manipulating objects and making objects work together. This allows us to create an application in modular programs and reusable code.

Java is platform independent: Java program write once and run on any operating system or any hardware. Java source code compile then convert into byte code (.class) this .class is execute through jvm any operating system or hardware.

Java is distributed: Java is used distributed computing means 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 interpreters is execute the byte code (.class file) The byte code is machine independent and run on any machine that has a Java interpreter. The program is compiled only once, and then byte code generated then jvm is a interpreted and execute one by one through just in time.

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. Multithreading is a necessity in visual and network programming.Java supports multithreaded programming, which allows you to write programs that do many things simultaneously.


Disadvantage of Java

It take more time consuming to execute the program is compile and generate byte code then jvm is interpreted and then execute.

Compiled program is run is fast and interpreter program is slow. Java is uses byte code convert to machine language through interpreter java program little slow to c or c++.

Java applications runs on jvm which is a program. It may be written incorrect.It is difficult to write a perfect program, especially if it is as big as a virtual machine, so that programs written in Java langauge tend to suffer from slightly different problems depending on the platforms on which the Java virtual machines run.

Top articles
Core Java Indroductions Published at:- Features of Java Published at:- Difference between Java and C Published at:- Difference between Java and C++ Published at:- Advantage and Disadvantage of Java Published at:- What is Java Published at:- Why Java is not Pure Object Oriented Language Published at:- Where and why Java is used Published at:- Java has Following Features Characteristics Published at:- Common Misconception about Java Published at:- 3 most commonly used tools are Published at:- Stream Creation-Jav 8.0(JDK1.8) Published at:- Data Type in Java-Size in Bytes & Bits . Published at:- Operators in Java-Assignment, increment and decrement, equality, arithmetic ,relational , logical, bit-wise, compound assignment Published at:- Java Control Flow of Statements Published at:- Java switch case and conditional operator Selection Statement Published at:- for and while Loop-Java Published at:- Java General Interview Questions and Answer Published at:- Write a program in Java to display the first 10 terms of the following series: 10, 20, 30, 40, …….. Published at:- Write the program in Java to display the first ten terms of the following series: 1, 4, 9, 16, Published at:- Write a program in Java to find the sum of the given series: Published at:- Write a program in Java to find the sum of the given series: Published at:- Why Proxies Are the Silent Backbone of Modern Online Operations Published at:-
R4Rin Team
The content on R4Rin.com website is created by expert teams.