Results 1 to 7 of 7

Thread: methods in java

  1. #1
    prashant57 is offline Member
    Join Date
    Apr 2011
    Posts
    2
    Rep Power
    0

    Exclamation methods in java

    why are functions called method in java...???:o

  2. #2
    ra4king's Avatar
    ra4king is offline Senior Member
    Join Date
    Apr 2011
    Location
    Atlanta, Georgia, US
    Posts
    396
    Rep Power
    4

    Default

    Because. ;)

  3. #3
    sunde887's Avatar
    sunde887 is offline Moderator
    Join Date
    Jan 2011
    Location
    Richmond, Virginia
    Posts
    3,069
    Blog Entries
    3
    Rep Power
    8

    Default

    To be different.

  4. #4
    ra4king's Avatar
    ra4king is offline Senior Member
    Join Date
    Apr 2011
    Location
    Atlanta, Georgia, US
    Posts
    396
    Rep Power
    4

  5. #5
    Jervhen is offline Member
    Join Date
    Apr 2011
    Posts
    2
    Rep Power
    0

    Default

    Its because if u use methods and function, u are implementing the powerful use of OOP (Object Oriented Programing). When u use a function u have to call it in order for that work.
    Its a power full thing to use a function for a better readability of codes. Actually, when coding a large application, it implies a long lines of codes. that's where you well apply calling of functions to a method.

    Hehe.. i just dont know how to explain it more. but theirs a lot of explanation.

  6. #6
    ra4king's Avatar
    ra4king is offline Senior Member
    Join Date
    Apr 2011
    Location
    Atlanta, Georgia, US
    Posts
    396
    Rep Power
    4

    Default

    Well summarizing what I found on Google:
    Functions are bits of code that are not related to any objects. They are similar to static methods in Java. Functions in Java are called methods because they all are related to objects.

  7. #7
    prashant57 is offline Member
    Join Date
    Apr 2011
    Posts
    2
    Rep Power
    0

Similar Threads

  1. Replies: 8
    Last Post: 04-16-2012, 11:00 PM
  2. Using Protected Methods, in a Java Library
    By WACman in forum New To Java
    Replies: 3
    Last Post: 03-11-2011, 08:47 AM
  3. Simple Java Methods Help...
    By amtrbz in forum New To Java
    Replies: 1
    Last Post: 01-29-2011, 10:56 PM
  4. Need help with java methods
    By dumas64 in forum Networking
    Replies: 1
    Last Post: 08-08-2009, 06:28 PM
  5. Ask for help on Java access to protected methods
    By fangzhong in forum Advanced Java
    Replies: 3
    Last Post: 02-17-2009, 01:50 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •