Hi,
Here I am little bit confused.
I have made the same example like I have created one java program in which I have defined interface and class in the same file as shown below:
package javaranch;
import java.io.FileNotFoundException;
import java.io.IOException;
interface Testable{
void test() throws IOException;
}
public class Sample implements Testable{
public static void main(
String args[]){
}
public void test() throws FileNotFoundException {
}
}
My this code is not showing any compile time errors.
So, what is your error is of???