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