public void init() throws SocketException
{
try
{
socket = new DatagramSocket(4446);
}
catch (SocketException se)
{
throw se;
}
}
and
public void init() throws SocketException
{
socket = new DatagramSocket(4446);
}
- Are the two chunks of code essentially the same or are they different in behavior to a caller who calls this init method?
- Will the exception received by caller of this method have same information and exactly same stack trace?