package p; import java.io.IOException; public class Bar { protected void foo() throws IOException { } }