I have updated in http://www.freejavaclass.com/
InetAddress inet = null;
try
{
inet = InetAddress.getByName("mail.google.com");
System.out.println ("IP : " + inet.getHostAddress());
if(inet.isReachable(1000))
{
System.out.println("Server is up");
}
else
{
System.out.println("Server is down");
}
}
Subscribe to:
Comments (Atom)
How can instantiate Java interface without implementing.
public interface Foo { String method(); } public class Claaa { public static void main(String[] args) { Foo fooByIC...
-
I have updated in http://www.freejavaclass.com/ When a class is loaded, all blocks that are declared static and don’t have function name ...
-
I have updated in http://www.freejavaclass.com/ The Object Oriented Programming Languages directly represent the real life objects like C...
-
I have updated in http://www.freejavaclass.com/ Collection is a group of objects treated as single unit. Arbitrary objects can be add, del...