Search...
FAQs
Subscribe
Pie
FAQs
Recent topics
Flagged topics
Hot topics
Best topics
Search...
Search within OCPJP
Search Coderanch
Advance search
Google search
Register / Login
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
Forum:
Programmer Certification (OCPJP)
How this program compiled successfully?
Ritu Kapoor
Ranch Hand
Posts: 102
posted 17 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Can anyone pls explain how the foll. prog. compiled successfully ?
interface One { public void someMethod(); } public class Interface1 implements One{ public native void someMethod(); }
Sanjeev Singh
Ranch Hand
Posts: 381
posted 17 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
native methods are never abstract.Dont assume them to be an abstract method though they have signature similar to abstract methods.It simply says that the real implementaion is done in languages other than
Java
.
~Sanjeev Singh<br />SCJP 1.5
Ritu Kapoor
Ranch Hand
Posts: 102
posted 17 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Thanks Sanjeev !
Won't you be my neighbor? - Fred Rogers. tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
reply
Bookmark Topic
Watch Topic
New Topic
Boost this thread!
Similar Threads
overriding static methods
Should we expect such questions?
A question about the main()
Exception - Abhilash Mock
interface again
More...