两句java的英文翻译[SCJP题目里的]

laixiaonian88 2006-09-06 09:10:10
1.By default, all integer variable types are signed是什么意思

2.In java all parameters are passed by value. In case of primitives, the copy of the variable is passed while case of object references, its the copy of the reference which is passed. When the argument is of primitive type, pass-by-value means that the method cannot change its value. When the argument is of reference type, pass-by-value means that the method cannot change the object reference, but can invoke the object's methods and modify the accessible variables within the object. 是什么意思

有几个词搞不很明白signed ,primitives,references,pass-by-value
...全文
119 2 打赏 收藏 转发到动态 举报
写回复
用AI写文章
2 条回复
切换为时间正序
请发表友善的回复…
发表回复
gefengxztg 2006-09-06
  • 打赏
  • 举报
回复
呵呵,几个单词
查查字典嘛
Camelh 2006-09-06
  • 打赏
  • 举报
回复
1.By default, all integer variable types are signed
默认情况下,所有的int变量都是有符号的
2.In java all parameters are passed by value. In case of primitives, the copy of the variable is passed while case of object references, its the copy of the reference which is passed. When the argument is of primitive type, pass-by-value means that the method cannot change its value. When the argument is of reference type, pass-by-value means that the method cannot change the object reference, but can invoke the object's methods and modify the accessible variables within the object
在java的所有参数传递都是值传递的,如果是原始类型(如int ,float,long等),变量的拷贝将会被传递;如果是对象引用,引用本身的拷贝将会被传递;当参数是原始类型;值传递意味着形参不能改变实参;如果参数是引用;值传递意味着,在方法中不能改变引用变量本身,但可以调用对象的方法来改变对象中可以访问的变量;

大概意思就是这样的,不一定很准确

23,405

社区成员

发帖
与我相关
我的任务
社区描述
Java 非技术区
社区管理员
  • 非技术区社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧