This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes Is this method delcaration legal? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "Is this method delcaration legal?" Watch "Is this method delcaration legal?" New topic
Author

Is this method delcaration legal?

Lubosh Bazant
Greenhorn

Joined: Jan 15, 2002
Posts: 14
Is this method declaration legal?
public native void aMethod(){};
According to Valiveru's mock exam, this statement is NOT legal. Can anyone explain.
Lubosh Bazant
Greenhorn

Joined: Jan 15, 2002
Posts: 14
Never mind the question - native method should not have a body.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Is this method delcaration legal?
 
Similar Threads
private final method??
Overloading
local inner class acces .. help !
final int/byte
Clarification on Var args