传入point类的一个对象point p1=new point(1.0,2.0);
point p2=new point(p1)p2.x将等于p1.x, p2.y=p1.x
相当于拷贝的作用
point p2=new point(p1)p2.x将等于p1.x, p2.y=p1.x
相当于拷贝的作用
解决方案 »
- 无聊,写了个Java病毒
- WebKit简介
- JTextArea 持续写入数据时,内存溢出
- 总是出现 无法从静态上下文中引用非静态 变量 this,实在不知问题在哪了!
- 第一次用eclipse(WTP all in one)按照eclipse网站上的教程写程序却无法编译!郁闷中!
- 小女高分求SUN Java SL110课程PDF版教程或PPT课件下载地址!
- 希望大老们看看
- 新手求一概率问题
- 请高手帮忙,如何把下面的VB代码转化成java代码?是有关加密的问题
- java的初学问题,关于this关键字的问题,谢谢各位了,先来的就先得了:)
- 插入数据库一条记录时如何返回插入后生成的ID?
- 巨变态的基本语法问题。
Initializes a newly created String object so that it represents the same sequence of characters as the argument; in other words, the newly created string is a copy of the argument string. Unless an explicit copy of original is needed, use of this constructor is unnecessary since Strings are immutable.
2.它不能有其它的改动.不能指向其它的对象!