Results 1 to 4 of 4
  1. #1
    htetnaing is offline Member
    Join Date
    Jan 2009
    Posts
    1
    Rep Power
    0

    Default Hello everyone and my first question

    Hi everyone,

    I'm newbie so umm forgive me if i'm wrong or something. I would love to ask all of you a question which has been bothering me since I started to learn Java. When we call a method in Java , people refers it to as passing a message. What if a particular method is static method ?? As far as I know, passing a message means a communication between to objects so if we call a method of class then we ain't creating any instance of object. So , in that kind of case, can we still refer to it as passing a message ?? I know this question is stupid but I can't find the right term for this process. Have a nice day, everyone.

  2. #2
    Join Date
    Jan 2009
    Posts
    14
    Rep Power
    0

    Default

    Hi,
    A static method is called without creating instance ( A separate allocated memory) but it is stored in some particular common memory , so you can still call the refering to static method as Passing a message.

  3. #3
    toadaly is offline Senior Member
    Join Date
    Jan 2009
    Posts
    671
    Rep Power
    6

    Default

    The accepted terminology is "method invocation", not "passing a message". Maybe that helps alleviate the confusion?

  4. #4
    Steve11235's Avatar
    Steve11235 is offline Senior Member
    Join Date
    Dec 2008
    Posts
    1,046
    Rep Power
    7

    Default

    I haven't heard the term "messaging" a method for at least 10 years. There was a reason for it back then, but I don't even remember what it was.

    I mostly hear "invoking" or "calling".

Similar Threads

  1. Question mark colon operator question
    By orchid in forum Advanced Java
    Replies: 9
    Last Post: 12-19-2010, 08:49 AM
  2. Question
    By kenrocks in forum AWT / Swing
    Replies: 3
    Last Post: 12-09-2008, 05:07 AM
  3. Question
    By ayoood in forum New To Java
    Replies: 16
    Last Post: 05-21-2008, 02:23 PM
  4. a question
    By slytheman in forum Java Servlet
    Replies: 0
    Last Post: 03-12-2008, 04:11 AM
  5. JNI question
    By javaplus in forum New To Java
    Replies: 0
    Last Post: 12-24-2007, 10:18 AM

Posting Permissions

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