Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

core

 
vinodh reddy
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
what is the diff between functions and methods
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64700
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • 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 ]
 
Campbell Ritchie
Sheriff
Posts: 48652
56
  • Mark post as helpful
  • send pies
  • 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.
 
Jesper de Jong
Java Cowboy
Saloon Keeper
Posts: 15214
36
Android IntelliJ IDE Java Scala Spring
  • Mark post as helpful
  • send pies
  • 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 ]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic