English, asked by vaishnavi9290, 2 months ago

what is function in java...​

Answers

Answered by arunpatodi18
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 XxItzPallaviQueenxX
54

\underline{\bf\red{Answer:-}}

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