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.
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 can't renounce my name. It's on all my stationery! And hinted in this tiny ad:
Free, earth friendly heat - from the CodeRanch trailboss