clone()是protected函数,不能这样调用
解决方案 »
- 菜单已经disable了,为什么图标没有变灰?
- 只要一个简单的分页第三方没想到这么难啊
- 问:java正则表达式中如何一次取多条分开的信息
- JAVA SOCKET远程链接,指定本地IP?
- 很怪异的现象,请高手给予解释~~~~谢谢~~~~
- 生成.jar文件后,为什么运行时出现“Fatal exception occurred. Program will exit.”?
- 建立文件路径(50分)
- 新手想学java,求大牛们推荐几本书。
- 如何连接postgresql?新手问题
- 方法都在方法区,如果我的非静态方法没有使用在堆中的非静态变量,(通常会定义成静态)而我没有把方法定义成静态,为什么还是不能直接用“类名.方法”使用
- 有关MouseMotionListener
- 关于《Thinking in Java》
{
public int intSon = 2;
public Object clone() throws CloneNotSupportedException
{
return super.clone();
}
}
public class test
{
public static void main(String[] args)
{
try
{
testSon aSon = new testSon();
testSon bSon = (testSon)aSon.clone();
System.out.println(bSon.intSon);
}
catch(Exception e)
{
}
}
}
谢谢!