Some of the disadvantages of Java are:
Since Java Programs run on top of Java Virtual Machine, it consumes more memory.
Since memory and processing requirements higher, hardware cost increases.
4- Low level programming
There is no support for low level programming in Java, like pointers are missing.
5- Garbage collection
There is no control over garbage collection in Java. That is programmer does not have any right to control the garbage collection. Java does not provide functions like delete(), free().
6- No Unsigned Types Unlike C/C++, Java does not support unsigned int, unsigned char, … etc. However in Java 8, API for unsigned long and unsigned int is introduced (Please see this oracle doc).
Beside all above disadvantages, Java is one of the most used language in the software industry (please see this) due to its maintainability and platform independent features.
GeeksforGeeks has prepared a complete interview preparation course with premium videos, theory, practice problems, TA support and many more features. Please refer Placement 100 for details
- Difference between Java and C language
- Why Java is not a purely Object-Oriented Language?
- The complete History of Java Programming Language
- Tips and Tricks for Competitive Programmers | Set 2 (Language to be used for Competitive Programming)
- Java.util.LinkedList.poll(), pollFirst(), pollLast() with examples in Java
- Java.util.Collections.disjoint() Method in java with Examples
- Java.util.Collections.rotate() Method in Java with Examples
- Java.util.concurrent.RecursiveAction class in Java with Examples
- Java.util.concurrent.RecursiveTask class in Java with Examples
- Java.lang.Short toString() method in Java with Examples
- Java.util.concurrent.Phaser class in Java with Examples
- Java.util.function.DoublePredicate interface in Java with Examples
- Java lang.Long.lowestOneBit() method in Java with Examples
- Java Deprecated API Scanner tool (jdepscan) in Java 9 with Examples
- Java lang.Long.highestOneBit() method in Java with Examples
If you like GeeksforGeeks and would like to contribute, you can also write an article using contribute.geeksforgeeks.org or mail your article to email@example.com. See your article appearing on the GeeksforGeeks main page and help other Geeks.
Please Improve this article if you find anything incorrect by clicking on the "Improve Article" button below.