what is function in java...
Answers
Answered by
4
Every Java method has to be within a class.
Static methods belong to a class while non-static methods belong to objects.
All parameters to functions are passed by value, primitives content is copied, while objects are not copied and some would say 'passed by reference'
Explanation:
pls mark brainliest
Answered by
54
A function is a piece which performs the operations and sometimes a value.A method is a function that is part of a class that can perform operations on data of this class.In the Java language,the entire program consists only of classes and functions can be described only inside them.
Similar questions
English,
1 month ago
Math,
1 month ago
World Languages,
2 months ago
Math,
2 months ago
Science,
9 months ago