In application programming, a function is the general term used for a bit of code that performs a specific, limited task. Functions (also known as subroutines) enable the programmer to divide complex tasks into smaller, more manageable pieces. Problems can be isolated more readily since each subroutine or function can be tested separately.
Copyright 2001 Sun Microsystems, Inc. All rights reserved. Legal Notice.