Iam new to Socket Connection in
java.
while Iam going to create the socket connection ,it is throwing an exception.
Could you please tell me the problem in this program?
import java.net.*;
import java.io.*;
public class Whois {
public static void main(
String[] args)throws Exception {
Socket s=new Socket("www.yahoomail.com",80);
System.out.println(s.getInetAddress());
System.out.println(s.getPort());
}
}