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:
Posts (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/ public, protected, default, private
-
I have updated in http://www.freejavaclass.com/ final : final keyword can be used for class, method and variables. A final class cannot b...
-
1) Download minikube-installer.exe. 2) Download kubectl.exe. 3) Install minikube in C:\Minikube and copy kubectl.exe in same location. 4)...