• Post Reply Bookmark Topic Watch Topic
  • New Topic

what "registerNatives()" method do?in class object.  RSS feed

 
A Enter
Greenhorn
Posts: 20
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi.everyone
i have found the fragment in the class object.who can tell me what the "registerNatives()" method do?

private static native void registerNatives();
static {
registerNatives();
}
 
Barry Gaunt
Ranch Hand
Posts: 7729
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You will see that it is a private method so do not be concerned with it. It is certainly beyond the scope of SCJP. If you wish I will move this topic to one of our Java In General forums.
 
A Enter
Greenhorn
Posts: 20
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks,please move it to one of our Java In General forums.
 
Barry Gaunt
Ranch Hand
Posts: 7729
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
OK, moving to Java In General (Intermediate).
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!