Is there a difference between Methods and Functions in Java? if yes are they physical or logical entity?
do they occupy memory or not?
Welcome to the Java Programming Forums
The professional, friendly Java community. 21,500 members and growing!
The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.
>> REGISTER NOW TO START POSTING
Members have full access to the forums. Advertisements are removed for registered users.
Is there a difference between Methods and Functions in Java? if yes are they physical or logical entity?
do they occupy memory or not?
I think java has methods and C has functions.
Basically they are the same thing.
A method's code is included in the class file.
It is possible that a compiler can optimize a method into inline code.
If you don't understand my answer, don't ignore it, ask a question.
So you're not sure..?
About what?
If you don't understand my answer, don't ignore it, ask a question.
Also posted at: https://coderanch.com/t/775919/java/...Functions-Java
Please read this: http://www.javaprogrammingforums.com...s-posting.html
If you don't understand my answer, don't ignore it, ask a question.
I understand some of the things being said here. I also understand wlndows is the most widely used for the general public. Desktop or chrome book. Methods and functions. But basic whether Java or Windows, both programming language possess the same intended results. Java works on windows also. Like the JRE. They possess the same operational functions. C or C++ is just more task oriented. Java also being task oriented. Like downloading or uploading task. I see now. Getting clearer on why I think I might want to learn Java.