File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Beginning Java and the fly likes API functionality Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "API functionality" Watch "API functionality" New topic

API functionality

sai donthneni
Ranch Hand

Joined: Mar 26, 2006
Posts: 50
What does API functionality of a method means?
Shaan Shar
Ranch Hand

Joined: Dec 27, 2005
Posts: 1249

Give the context please with this thread. Then Only we can understand what do you want to know exactly

The Best way to predict your future is to create it - Every great individual common man
Ulf Dittmer

Joined: Mar 22, 2005
Posts: 42965
One doesn't talk so much about the API of a method, but the API of a class (or a package, or a library). That refers to the methods in a class that are publicly accessible. The javadocs for a class list all the public methods - those make up the API of the class.
sai donthneni
Ranch Hand

Joined: Mar 26, 2006
Posts: 50
The statement is as follows. "The final keyword prevents a method from being overridden in a subclass, and is often used to enforce the API functionality of a mthod".

What does API functionality of a method mean?
Stan James
(instanceof Sidekick)
Ranch Hand

Joined: Jan 29, 2003
Posts: 8791
Interesting choice of words. It means that the class author defined the API for the class and the author does not want anyone to extend the class and somehow alter the functionality. He used the "final" keyword to enforce his decision that you shouldn't override this method to do something different.

There are some pretty good arguments for making all methods final, though few people actually bother to do it. If you're curious, scroll down to the OO, UML, etc forum and ask about the Liskov Substitution Principle.

A good question is never answered. It is not a bolt to be tightened into place but a seed to be planted and to bear more seed toward the hope of greening the landscape of the idea. John Ciardi
I agree. Here's the link:
subject: API functionality
It's not a secret anymore!