Results 1 to 3 of 3
  1. #1
    ferfykins is offline Member
    Join Date
    Feb 2017
    Rep Power

    Default New to Java, quick question

    So, i understand what parameters are in a method

    but i dont' understand what an argument in a method is, can someone give me an example of both, and saying what part is the argument, i'd appreciate it!

    /edit preferably code that shows both in the same code, an entire program plz, not a snippet
    Last edited by ferfykins; 02-27-2017 at 08:49 AM.

  2. #2
    Tolls is offline Moderator
    Join Date
    Apr 2009
    Rep Power

    Default Re: New to Java, quick question

    They're the same thing.
    Please do not ask for code as refusal often offends.

    ** This space for rent **

  3. #3
    quad64bit's Avatar
    quad64bit is offline Moderator
    Join Date
    Jul 2009
    Rep Power

    Default Re: New to Java, quick question

    There are lots of words in programming that are used interchangeably, and often it doesn't matter. Your example is one of them, others might include:

    - variable == field == attribute == property
    - method == function == subroutine == procedure

    These are not technically the same in all languages, but are often used interchangeably in java. Technically, procedures are just operations that can be invoked which may take data as an input, where as functions return a value. Methods have an OOP (Object Oriented Programming) connotation. In java, you generally use method/function.

Similar Threads

  1. Quick Question on 2D Java Games
    By Danieldcc in forum New To Java
    Replies: 1
    Last Post: 04-01-2012, 10:15 PM
  2. Quick Java Question
    By nmc94 in forum New To Java
    Replies: 2
    Last Post: 12-28-2011, 04:34 AM
  3. Quick Question for java with jobs :(
    By pamboys09 in forum Jobs Discussion
    Replies: 1
    Last Post: 02-07-2011, 07:56 PM
  4. Quick Question...
    By FatalSylence in forum New To Java
    Replies: 4
    Last Post: 10-15-2010, 03:38 PM
  5. Quick Java question/help
    By Zedy in forum New To Java
    Replies: 6
    Last Post: 04-22-2008, 04:40 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