🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: cn.bbs.comp.lang.java
Article #12536

Re: java�еĴ�ֵ�ʹ�����

#12536
From: NUE
Date: Tue, 27 Jul 2004 06:50
27 lines
3135 bytes
�� �� Vigacmoe.bbs@bbs.zju.edu.cn (è������ʺ) �Ĵ������ᵽ: ��
:     java������method�IJ���ȷʵ��ֵ���ݣ�����primitive���͵IJ����
: �������ֵ�����ڶ������͵IJ���ݵ���������õ�ֵ�����Ҷ�����һ��copy
: �����ķ�ʽ���ݵġ�
:     btw���������Ķ����Ǵ����ջ�����Ǵ���ڶ��У���������ã�ȷ�е�

�ԣ�Ӧ���Ƿ��ڶ��У�������ҽ����ˡ�������ν���ô��ݵ���ֵ�����Ծ��Ǵ�ֵ����
˵���Ҳ��ܹ�
ͬ����Ȼ���ݵIJ��Ƕ���ĸ������Ǿ��Ǵ������ã�������ݵ���ֵ������⣬ֻ����
Ӣ�������: pass by value, pass by reference.
pass by value: ָ��ԭ�еĶ���ĸ������ݸ��µı���
pass by ref:   ָ��ԭ�еĶ�������ô��ݸ��µı���

��ô���ÿ�ʲô���ݣ������Ƕ�����ڴ��ַ������˵����Ȼ���ں����ڲ�������һ��
�ı������������IJ�����object�ĸ���������object�����õ�ַ����ʵ��java����
���������⣬ͳͳ�������á�ֻ�л�������pass by value�ġ��������и�����䶼
��pass by reference.

:          ˵�����õ�ֵ����Ϊ����ݵ�ʱ����method��C/C++���Ǻ�
�����:          �ڵ�ַ����java����ʲô��Ҳ��֪��-_-o��һ��ѹ��ջ��
: �� �� nue.bbs@bbs.sjtu.edu.cn (NUE) �Ĵ������ᵽ: ��
: : �㲢û�и�������ʲô�аѶ���ѹջ��ʲô�ֽ���copyһ��ѹջ�������DZ����ڱ�
: : ������ʱ�����ջ��ģ��ٰ���ѹջ��hoho
: : �κ����ö���������ַ������ʵ�ֵġ�������ֱ�Ӱ�ջ�ڴ���ѹջ�������ԣ���һ��tij
--
�� ��Դ:����ˮ˼Դ bbs.sjtu.edu.cn��[FROM: 219.206.224.14]
Technical Details
Message-ID: <4DODQR$9iT@bbs.sjtu.edu.cn>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!news.maxwell.syr.edu!border1.nntp.dca.giganews.com!nntp.giganews.com!nntp-server.pubsub.com!netnews.sdu.edu.cn!SJTU

Show Full Headers
Complete Article Headers
X-Google-Thread: f6cb0,148db713ed371ece
X-Google-Attributes: gidf6cb0,public
X-Google-Language: Chinese,GB
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!news.maxwell.syr.edu!border1.nntp.dca.giganews.com!nntp.giganews.com!nntp-server.pubsub.com!netnews.sdu.edu.cn!SJTU
From: nue.bbs@bbs.sjtu.edu.cn (NUE)
Newsgroups: cn.bbs.comp.lang.java
Subject: Re: java�еĴ�ֵ�ʹ�����
Date: 27 Jul 2004 06:50:05 GMT
Organization: ��ˮ˼Դ
Message-ID: <4DODQR$9iT@bbs.sjtu.edu.cn>
Mime-Version: 1.0
Content-Type: text/plain; charset="gb2312"
Content-Transfer-Encoding: 8bit
X-Filename: Java/M.1090910715.A
Lines: 27