Hi!!!
i am saving following code in c.java and compiling it why it is giving me erro:
class BufferEmpty extends Exception {
BufferEmpty() { super(); }
BufferEmpty(
String s) { super(s); }
}
class BufferError extends Exception {
BufferError() { super(); }
BufferError(String s) { super(s); }
}
public interface Buffer {
char get() throws BufferEmpty, BufferError;
}
interface InfiniteBuffer extends Buffer {
char get() throws BufferError; }