• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Modifiers

 
Ranch Hand
Posts: 60
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
<code>How can native methods be final??
aren't they supposed to be implemented in subclass ..
pl correct me if i m wrong
Thank you
</code>
 
Ranch Hand
Posts: 126
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
The native methods had been written in a different language (like
C or C++). So, you can not implement that method in your subclass...
Moreover, a native method should not have body...otherwise, you will get compiler error...
A final method can not be overridden. So, it is nothing wrong to apply final modifier on the native method.
Also, we do not need to apply final modifier on native method
Hope this helps...
Uma
 
Arsho, Ayan
Ranch Hand
Posts: 60
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
<code>thank u for your reply.
</code>
[This message has been edited by Arsho, Ayan (edited November 27, 2001).]
reply
    Bookmark Topic Watch Topic
  • New Topic