+ 1
What is the difference between function and method in java
3 Answers
+ 2
A function returns a value. A method does not, it just runs declared statements.
+ 3
Method is a member of class
+ 3
A function is outside a class, while a method is inside a class.
Method is the term you will hear for OOP.
@Hassie
NO.
A method can certainlly return a value..
class aClass{
int myMethod(){
return 1;
}
}
Java does NOT have functions.