Formal participation arguments in Java

Source: Internet
Author: User
Tags function definition

Read a lot of articles, a little bit of a summary of the most basic form of participation in the argument has a certain understanding, although not deep enough.

1. Basic Concepts

    • Formal parameters: All called "formal arguments" are parameters that are used when defining function names and body functions in order to receive the arguments that call the function Shishung.
    • Arguments: All called "actual arguments" are arguments that pass a function on the call.

2. Difference

    • The formal parameter appears in the function definition and can be used throughout the body of the function, leaving the function unused.
    • The argument appears in the keynote function, and when it enters the function, the real parametric is not used .
    • The function of formal parameters and arguments is for data transfer. When a function call occurs, the keynote function transmits the value of the argument to the parameter of the modulated function, thus realizing the transfer of the keynote function to the transferred function .

These basic understandings lay the groundwork for learning value passing and reference passing, in order to better learn java.

Formal participation arguments in Java

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.