An important disadvantage of Java you should know is that it consumes a lot of memory due to the extra level of abstraction and compilation by the Java virtual machine (JVM).