+3

What is diffrent between function and method in java???

7/21/2019 8:45:30 AM

Mehrzad Shirvani

6 Answers

New Answer

+4

We call function as method in java both are same

+3

I don't think the term 'function' is used in Java. A method is a function in Java. So what I'm saying is that they're both the same thing

+1

method is used in object oriented programming (OOP), but meanning is same describes subroutine as part of program

+1

I think only the spelling.

+1

functions and methods are essentially the same. The main difference is that a method is a function within an object. In java, everything is an object, hence they call functions methods.

0

I guess they mean the same