*
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


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "API functionality" Watch "API functionality" New topic
Author

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
Marshal

Joined: Mar 22, 2005
Posts: 41173
    
  45
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.


Ping & DNS - my free Android networking tools app
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
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: API functionality
 
Similar Threads
(J2ME) : To display HTML code in Midlet
NX: Wrapping JOption messages
Event Drvien Client Server Programming
java.util.Formatter is not in jdk1.4
adding no of days for given date