Forums.Sureshkumar.net : A Perfect Place to Share Knowledge         Blogs     Games    Magazines    

"Sharing knowledge does not lessen your store, often it gets you more. Sharing plays a key role in relationships and bonding, happens in small steps and is assisted through community membership."

Go Back   SURESHKUMAR.NET FORUMS > TECHNICAL DISCUSSIONS > JAVA Technologies
Register FAQ Members List Calendar Games Blogs Search Today's Posts Mark Forums Read

   

Reply
 
LinkBack Thread Tools Rate Thread Display Modes
Old 23-01-07, 01:31 PM   #1 (permalink)
Member
 
Join Date: Jan 2007
Age: 26
Posts: 48
Thanks: 1
Thanked 3 Times in 3 Posts
Thanks: 1
Thanked 3 Times in 3 Posts
Rep Power: 2 uday321 is on a distinguished road
pls. exact diff. b/w function & method

hi frenz,

what is the exact difference between function and a method interview poing of view....
uday321 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 26-01-07, 11:50 AM   #2 (permalink)
Moderator
 
t_mohan's Avatar
 
Join Date: Apr 2006
Location: India
Posts: 636
Thanks: 57
Thanked 78 Times in 63 Posts
Thanks: 57
Thanked 78 Times in 63 Posts
Rep Power: 17 t_mohan is a splendid one to behold t_mohan is a splendid one to behold t_mohan is a splendid one to behold t_mohan is a splendid one to behold t_mohan is a splendid one to behold t_mohan is a splendid one to behold t_mohan is a splendid one to behold
Re: pls. exact diff. b/w function & method

A function should always return a value, a method may or maynot return a value,We dont have functions in java. C has functions , C++ and Java has methods defined in a class

Let me know your questions
__________________
M0h@n
t_mohan is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
The Following User Says Thank You to t_mohan For This Useful Post:
Arvind_pal05 (20-06-07)
Old 01-06-07, 11:44 AM   #3 (permalink)
Member
 
deepesh's Avatar
 
Join Date: May 2007
Location: Bangalore
Posts: 37
Thanks: 1
Thanked 0 Times in 0 Posts
Thanks: 1
Thanked 0 Times in 0 Posts
Rep Power: 2 deepesh is on a distinguished road
Re: pls. exact diff. b/w function & method

But i think in C we can have functions with void type also..
__________________
Thanks & Regards,

Deepesh
The Language of Friendship is not Words but Meanings....
deepesh is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 01-06-07, 01:29 PM   #4 (permalink)
Super Moderator
 
sk_kireeti's Avatar
 
Join Date: Feb 2006
Location: Hyderabad
Posts: 2,355
Thanks: 117
Thanked 241 Times in 198 Posts
Thanks: 117
Thanked 241 Times in 198 Posts
Blog Entries: 4
Rep Power: 51 sk_kireeti has a reputation beyond repute sk_kireeti has a reputation beyond repute sk_kireeti has a reputation beyond repute sk_kireeti has a reputation beyond repute sk_kireeti has a reputation beyond repute sk_kireeti has a reputation beyond repute sk_kireeti has a reputation beyond repute sk_kireeti has a reputation beyond repute sk_kireeti has a reputation beyond repute sk_kireeti has a reputation beyond repute sk_kireeti has a reputation beyond repute
Re: pls. exact diff. b/w function & method

Generally this naming convension is not clearly observed in programming languages. Function and method are generally interchanged. They are only part of theoritical concepts. This concept is clearly differenciated in Oracle Pl/sql.

In C they are called functions, in C++ they are called member functions and in Java the same is called as method. What ever you call, they are one and same. Ofcourse, some are inside class and some are not.

We can argue that functions/methods returning void are methods ortherwise, they are simply functions.

Any comments from any developer is welcome.

Thanks,
Krishna
__________________
Give 1 cup rice to a hungry Indian just by a mouse click. No money, no form filling, no hassle... Click here for the donation.
sk_kireeti is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
The Following 3 Users Say Thank You to sk_kireeti For This Useful Post:
Kousalya (20-06-07), krishnareddy (08-06-07), nandhini_7 (20-06-07)
Old 19-06-07, 09:09 PM   #5 (permalink)
TAM
Senior Member
 
TAM's Avatar
 
Join Date: Oct 2006
Location: Mayiladurai (TN)
Posts: 233
Thanks: 8
Thanked 7 Times in 5 Posts
Thanks: 8
Thanked 7 Times in 5 Posts
Rep Power: 5 TAM is on a distinguished road
Re: pls. exact diff. b/w function & method

I think kireeti made a wise notion
TAM is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
ejb bujjimadhu JAVA Technologies 4 10-09-06 10:15 PM
java JSP naga JAVA Technologies 4 21-08-06 05:03 PM
What’s the difference between thesr shilpa VB / ASP.NET Technologies 5 08-03-06 12:09 PM
JAVA collection naga JAVA Technologies 0 21-02-06 06:01 AM
JAVA PART3 naga JAVA Technologies 0 18-02-06 07:48 AM


All times are GMT +6.5. The time now is 03:05 PM.





Search Engine Optimization by vBSEO 3.1.0