aspose file tools*
The moose likes Beginning Java and the fly likes core Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "core" Watch "core" New topic
Author

core

vinodh reddy
Greenhorn

Joined: Jul 28, 2007
Posts: 1
what is the diff between functions and methods
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61657
    
  67

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 ]

[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Campbell Ritchie
Sheriff

Joined: Oct 13, 2005
Posts: 39869
    
  28
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

Joined: Aug 16, 2005
Posts: 14350
    
  22

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 ]

Java Beginners FAQ - JavaRanch SCJP FAQ - The Java Tutorial - Java SE 8 API documentation
 
 
subject: core