1) What will happen when you attempt to compile and run this code? [7]
public class Mod{
public static void main(
String argv[]){
}
public static native void amethod();
}
(a)Error at compilation: native method cannot be static.
(b)Error at compilation native method must return value.
(c)Compilation but error at run time unless you have made code containing native amethod available.
(d)Compilation and execution without error.
here why c is not correct ...
suppose if the native code is not available then how the program run??
answer given is d ...how can ???
please correct me if iam wrong???
thanks
sri