How do I implement PING in Java?
Java includes support for UDP and TCP sockets. PING requires support for the Internet Control Message Protocol (ICMP). Our only choice, is to use native code, or to use java.lang.Runtime to execute an external ping application. We won\'t be able to develop a 100% Pure implementation.NB - A native implementation that uses the Java Native Interface (JNI) is available for PING, in both English and Spanish.