首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 开发语言 > 编程 >

Java实例化一个对象的几个步骤

2012-12-27 
Java实例化一个对象的几个方法Apple apple new Apple()//method 1Apple.getClass().newInstance()//me

Java实例化一个对象的几个方法

Apple apple = new Apple();   //method 1Apple.getClass().newInstance();  //method 2Class.forName("Apple").newInstance();  //method 3
?

热点排行