This week's book giveaway is in the Mac OS forum. We're giving away four copies of a choice of "Take Control of Upgrading to Yosemite" or "Take Control of Automating Your Mac" and have Joe Kissell on-line! See this thread for details.
hi, can somebody explain for me why in question 5 page 135 in Kathy-Bert programmer guide, the declaration no.5 private native void m1(); is a legal one??? is it an abstract method or if it is not, can it end with the semicolon ??? Many thanks danny.
The method is declared as native. That means the implementation of the method is done in language like C. Compiler wouldn't verify any thing else on these native methods till the method is called from your code. At that time if the right library having this method is not linked you get a run time error. At compile time no checks for native methods. Native methods can't have body. They should end with simply a semicolon.