Is there a difference between function and method in Java?

The main difference between function and method is that function is free of any object, whereas method itself is static or is on an object . The C language has no methods, it has only functions, whereas C++ and JAVA have no functions, they only have methods. The object-oriented word for method is, function.

Sizin İçin Seçtik  What is method and main method in Java?

Leave a Reply

Your email address will not be published. Required fields are marked *