2017年9月25日

java 中细节

摘要: 只要这个类被加载,Java 虚拟机 就能根据类名在运行时数据区的方法区内定找到他们。因此,static对象可以在它的任何对象创建之前访问,无需引用任何对象。 用public修饰的static成员变量和成员方法本质是全局变量和全局方法,当声明它类的对象市,不生成static变量的副本,而是类的所有实例 阅读全文

posted @ 2017-09-25 18:00 明确豆 阅读(82) 评论(0) 推荐(0) 编辑

Interfaces and Inheritance 接口与继承

摘要: 一、接口 In the Java programming language, an interface is a reference type, similar to a class, that can contain only constants, method signatures, defau 阅读全文

posted @ 2017-09-25 15:59 明确豆 阅读(254) 评论(0) 推荐(0) 编辑

导航