Answered Questions

  • What is the difference between methods and functions?

    Shylendar

    • Dec 26th, 2016

    Simple Difference:
    1. Inside the class you can write method()
    2. Outside the class you can write function()
    3. Function have return type.
    4. Method don't have return type.

    sandeep singh rawat

    • Oct 13th, 2015

    A function was used in C/C++. However with the Java the name "method" is used in place of function that is all.