已经加载内存中
已经有对象名了
Object类有个getClass方法
定义Person类里面name和age两个属性。
生成有参构造 无参构造。getter和setter 还有重写toString方法
Class.forName
Class.forName是一个静态的方法
参数传的是一个全类名,包名+类名。有一个编译异常需要处理。
类名拼写错了重写拼类名
类名.class
类.getClass
验证三个对象,用等等比较的是对象的内存地址
每一个class字节码文件对应的都不相同
三种形式的常用于方式