In Java, is it a reference transfer or a value transfer ....

Source: Internet
Author: User
He chatted with Brother Z just now and asked: In Java, are you referring to or passing values?

At that time, I mixed up the meaning of this "pass" and thought it was an Object Instantiation, for example:

Abc a = new ABC ();

Is a reference type or value type, so:

Most of them are passed by reference (Reference Type), There are several common types: Value Transfer (Original TypeFor example, Int.

==========================================

The answer is completely different. Now it seems that the Q & A of Z is about the parameter transfer type, and the value is passed in Java...

==========================================

The above answer is to confuse the two previous posts:

Http://www.cnblogs.com/amboyna/archive/2008/03/10/1099357.html
Http://www.cnblogs.com/amboyna/archive/2008/03/10/1099364.html
Bytes --------------------------------------------------------------------------------------

Hey, this post was written during the Java tutorial by Mr. Weng Kai.

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.