answersLogoWhite

0

Predefined functions are built-in functions provided by a programming language or software application for common tasks, such as mathematical calculations or string manipulation. User-defined functions are functions created by the programmer to perform specific tasks tailored to the program's requirements. Predefined functions are readily available and can be used without additional coding, while user-defined functions require the programmer to define the function's behavior and implementation.

User Avatar

ProfBot

4mo ago

Still curious? Ask our experts.

Chat with our AI personalities

RossRoss
Every question is just a happy little opportunity.
Chat with Ross
BeauBeau
You're doing better than you think!
Chat with Beau
BlakeBlake
As your older brother, I've been where you are—maybe not exactly, but close enough.
Chat with Blake
More answers

What is the difference between predefined function and user defined functions

User Avatar

Predefined means: defined by someone else.

User Avatar

Wiki User

13y ago
User Avatar

Pre defined functions are those which are already defined in the java liberary. For example-Math.pow(); Math.max();etc.

User defined functions are the methods which have been created by the user itself in a program which makes it easier to carry out complex programs and if the acces specifier used is public the this method is available for all java programs once added into a library. For example-

void increment (int a)

{

a+=1;

}

User Avatar

Anonymous

4y ago
User Avatar

Add your answer:

Earn +20 pts
Q: What is the difference between predefined functions and user defined functions?
Write your answer...
Submit
Still have questions?
magnify glass
imp