File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes can abstract, native methods be called ? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "can abstract, native methods be called ?" Watch "can abstract, native methods be called ?" New topic
Author

can abstract, native methods be called ?

sarim raza
Ranch Hand

Joined: Nov 02, 2000
Posts: 232
i asked this question before but did not receive a satisfactory reply.
thanks
deekasha gunwant
Ranch Hand

Joined: May 06, 2000
Posts: 396
Hi sarim,
yes of course both abstract/native methods be called.
just think if a method can not be called then what is it for???
Now the thing is that what are the restrictions/conditions in calling them.
1) You should call a abstract method only if u have implemented the abstract method/u have provided the native code for the native method.
If u keep the above rule in mind then u won't have any problem.
I'm giving you an example.


run the above code and u'll see that it runs perfectly.
similarly native methods can be called provided u have got the native code in place.
regards
Deekasha
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: can abstract, native methods be called ?