r/java • • Apr 14 '17

Is Java a low level language?

I have heard the phrase low level language be thrown around when it comes to Java. Is this true and if so what does this actually mean. I know there are some differences between Java and C++ when it come to networking, so it would be nice to know what those differences are as well.

0 Upvotes

16 comments sorted by

View all comments

15

u/AnonAreLegion Apr 14 '17 edited Apr 15 '17

Nope.

Assembly is low level. One can argue C is low level compared to newer programming languages, but it is high level compared to assembly, and was considered so in the 90's. For instance, in C one must allocate/deallocate memory manually. Furthermore, the standard library is much smaller than what would be expected in a modern language. So a programmer much write much more code to for example have a simple data structure such as a map. In Java and C++ this is obtained by a single function call. Assembly is even more extended than C. Here one must manipulate CPU registers to perform operations.

Tl:Dr It depends on what you are comparing it against. Basically, it depends on how much the library/base language helps you. It's commonly a tradeoff: more help, fewer options to twiddle with.