The following method
native void format();
appears to have the structure of an abstract method.
It compiles in both
1) abstract
and
2) non-abstract classes.
I understand that native methods are used to allow native code written in C or C++ to communicate with
Java Code.
For the purposes of the exam,
I understand that this is a valid declaration.
native void format();
Methods that are preceded by the
native modifier can have the method body of an
abstract method without being declared abstract.
This method structure lies somewhere between
1) a concrete class with a method body
2) an abstract class with no method body
Question:
Does the native method receive its body after its interaction with native code ( for example code written in C++) has been written?