Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Is this method delcaration legal?

 
Lubosh Bazant
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Never mind the question - native method should not have a body.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic