blob: 67f160cc55711ef6d17797b5a7e6b0fc0e56788c [file] [log] [blame]
package trycatch18_in;
import java.net.Socket;
import java.io.InputStream;
import java.util.zip.DataFormatException;
class TestWithThrows1 {
void foo(int a) {
/*[*/Socket s=new Socket();
InputStream is=s.getInputStream();
s.getInetAddress();/*]*/
if (s.getTcpNoDelay())
throw new DataFormatException();
is.available();
}
}