File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Beginning Java and the fly likes java [question -- overloading] Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "java [question -- overloading]" Watch "java [question -- overloading]" New topic

java [question -- overloading]

Priyanka Darekar

Joined: Sep 21, 2009
Posts: 2
difference method overloading and function overloading?
Deepak Bala

Joined: Feb 24, 2006
Posts: 6662

Please provide a descriptive subject line.

The body of your post is phrased like a google search. Perhaps because it is one. Did you try to google this subject ?

SCJP 6 articles - SCJP 5/6 mock exams - More SCJP Mocks
Maneesh Godbole
Saloon Keeper

Joined: Jul 26, 2007
Posts: 10815

Welcome to the Ranch.

I have closed the same question which you had posted in the Servlets forum. Please choose a proper forum and do not post the same question in multiple places.
More information here

Coming back to your question. Please take efforts to frame your thoughts in proper English.
Method and function mean the same. So there is no difference.

[How to ask questions] [Donate a pint, save a life!] [Onff-turn it on!]
len kumar

Joined: Sep 21, 2009
Posts: 4
HI Priyanka,

functions in C++ are one which can be written inside a class or even outside a class. but

In java we make use of methods which has to be written inside a class and had to be invoked by creating an instance of that class.
Campbell Ritchie

Joined: Oct 13, 2005
Posts: 46328
The real difference is that "function" is not a word usually used in Java. It is used in other languages, however.
Chris John

Joined: Sep 19, 2009
Posts: 7

Priyanka tell me what is the differene b/w function and method. Then may be I can explain it to you.
You won't be able to answer in Java's context as there is no function in here as Campbell Ritchie told.
From another language context both are same.
I agree. Here's the link:
subject: java [question -- overloading]
jQuery in Action, 3rd edition