• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Ron McLeod
  • Jeanne Boyarsky
Sheriffs:
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
Bartenders:

core

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
what is the diff between functions and methods
 
Sheriff
Posts: 67756
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I assume that this is a core Java question?

Please take the time to choose the correct forum for your posts. This forum is for questions on JSP. This post has been moved to a more appropriate forum.

You might also want to consider reading the guidelines that have been put together to help you get the most out of JavaRanch as a resource by clicking the "Smart Questions" link below.

In particular, please read this.
[ July 31, 2007: Message edited by: Bear Bibeault ]
 
Marshal
Posts: 80985
530
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
The difference is, functions is what they are called in C and methods is what they are called in Java.
 
Java Cowboy
Posts: 16084
88
Android Scala IntelliJ IDE Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
See these Wikipedia pages:

Subroutine (especially see "Related terms and clarification" at the bottom)
Method (computer science)

The main difference is that a method is associated with a class or object, while a function isn't. In Java, there are no functions like there are in C or C++.
[ August 01, 2007: Message edited by: Jesper Young ]
 
The City calls upon her steadfast protectors. Now for a tiny ad:
Clean our rivers and oceans from home
https://www.kickstarter.com/projects/paulwheaton/willow-feeders
reply
    Bookmark Topic Watch Topic
  • New Topic