what are functions or methods___in java ???
Answers
Answered by
0
Answer:
A function is a piece of code that is called by name. It can be passed data to operate and can optionally return data.
A method is a piece of code that is called by a name that is associated with an object.
Answered by
0
Explanation:
A method is a set of code which is referred to by name and can be called (invoked) at any point in a program simply by utilizing the method's name. Think of a method as a subprogram that acts on data and often returns a value. Each method has its own name.
Similar questions
English,
6 months ago
English,
6 months ago
Math,
6 months ago
Hindi,
1 year ago
Physics,
1 year ago
Social Sciences,
1 year ago
Social Sciences,
1 year ago