由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Java版 - Top Ten Errors Java Programmers Make(6)
相关主题
Top Ten Errors Java Programmers Make(7)Help with Tomcat for Eclipse v1.03
Top Ten Errors Java Programmers Make(10)Tomcat JSP syntax error
Top Ten Errors Java Programmers Make(8)developer, programmer, software engieer有什么区别
Top Ten Errors Java Programmers Make(5)Re: Confused!
Top Ten Errors Java Programmers Make(4)Top Ten Errors Java Programmers Make(9)
Top Ten Errors Java Programmers Make(3)to Water, other future programmers
Top Ten Errors Java Programmers Make(2)Re: question:linked list?
Top Ten Errors Java Programmers Make(1)my collection for Sun certified Java Programmer
相关话题的讨论汇总
话题: passing话题: java话题: when话题: value话题: reference
进入Java版参与讨论
1 (共1页)
b*g
发帖数: 644
1
6. Confusion over passing by value, and passing by reference
This can be a frustrating problem to diagnose, because when you look
at the code, you might be sure that its passing by reference, but find
that its actually being passed by value. Java uses both, so you need
to understand when you're passing by value, and when you're passing by
reference.
When you pass a primitive data type, such as a char, int, float, or
double, to a function then you are passing by value. That means that a
copy of t
1 (共1页)
进入Java版参与讨论
相关主题
my collection for Sun certified Java ProgrammerTop Ten Errors Java Programmers Make(4)
who has java source code on decision tree?Top Ten Errors Java Programmers Make(3)
Build web server and dispatcher?Top Ten Errors Java Programmers Make(2)
Question about TomcatTop Ten Errors Java Programmers Make(1)
Top Ten Errors Java Programmers Make(7)Help with Tomcat for Eclipse v1.03
Top Ten Errors Java Programmers Make(10)Tomcat JSP syntax error
Top Ten Errors Java Programmers Make(8)developer, programmer, software engieer有什么区别
Top Ten Errors Java Programmers Make(5)Re: Confused!
相关话题的讨论汇总
话题: passing话题: java话题: when话题: value话题: reference