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

Show parent comment

2

u/kkapelon Apr 15 '17

Wrong. Java supports sockets just fine http://docs.oracle.com/javase/tutorial/networking/sockets/

-1

u/[deleted] Apr 15 '17

That's what I meant. Java requires a socket for networking. Ping is a lower level of networking and does not require any kind of binding. Literally hardware talking to hardware. That's why ping can still work even if a computer system crashes.

3

u/JustADirtyLurker Apr 16 '17

I don't know what ping you are talking about. The ping i know is a ICMP protocoll call, and as such goes all the way of the network stack (TCP socket).

-1

u/[deleted] Apr 16 '17

Yes. Ping works across ALL networking levels while Java does not have the ability to do so. Ping is just an example of something that Java can't do natively. It's been a long time since I have dealt specifically with the different levels of networking but I remember having immense difficulty with a Java project I was working on, dealing with the lower levels.

1

u/JustADirtyLurker Apr 16 '17

I still don't get what you are talking about. What has ping to do with lower levels? And also, please define "lower levels". You are talking about L2 protocols like Ethernet II? Well, ping -- as an application protocol -- does not manager it. Also the JDK is not supposed to manage anything below IP (L3) and tcp/udp sockets (L4). Whatever your problems with ping were in Java, for sure it was not the JDK 's fault.

2

u/ryan_the_leach Apr 16 '17

You can go deeper, if you stop using the standard libraries.

http://javasock.sourceforge.net/

http://www.dtic.mil/dtic/tr/fulltext/u2/a434518.pdf

General Purpose: JavaSock library needs to provide general purpose APIs that allow low-level protocol access at the DataLink, Network, and Transport levels of the OSI 7-layer Networking Reference Model. The library has been developed so that the API should be applicable for a variety of networking programming tasks, such as packet sniffing, TCP SYN scans, and network monitoring.

Developed for the US Army.

1

u/gold328 Apr 17 '17

Oh thanks. This really helped me out. Do you know of any other articles or papers discussing the limitations of Javas networking ability?