public class first{
public static void main(
String[] args) throws NoSuchMethodException{
try{
first p=new first();
p.showData();
}
catch(NoSuchMethodException e){
System.out.println(e);
}
}
}
Dear sir in the above code it should throw NoSuchMethodException becouse showData() is not in class first that is on run time. But it is genrating a compile time error that can't resolve symbol why sir? and if it true then when does NoSuchMethodException is thrown?
with regard
Arun kumar maalik