Since Java 5 working with RMI (Remote Method Invocation) is very easy. You don’t need the rmic compiler unless you work with legacy RMI clients. Now stubs are generated automatically at runtime. Let’s see a very minimalistic example.
Many times it is useful to be able to get programmatically information about the network interfaces present on a host. Java standard library include a number of classes designed to provide access to this information. The most important is java.net.NetworkInterface which suffered a major face lifting in Java 6.
Now it is possible to get a lot more information about every network interface in the system. Of special importance is the ability to get the MAC address of an interface.
Help us out! More and more tutorials are submitted to Good-Tutorials each day. We could use your help with finding good tutorials.
Mind lending a hand?