摘要: 1、包,提供类的多层类命名空间。也就是对类文件进行分门别类,就像用文件夹来管理文件一样,会使得管理更方便,也避免了类名冲突的问题package example.four.aa;class Test{...}这条语句说明,该文件中的所有类都是放在example.four.aa包中的,位于此包中的每个类... 阅读全文
posted @ 2015-11-12 18:44 巅峰之旅 阅读(562) 评论(0) 推荐(0) 编辑
摘要: 1 class Test 2 { 3 public int devide(int x,int y) 4 { 5 int result=x/y; 6 return result; 7 } 8 } 9 class TestException10 ... 阅读全文
posted @ 2015-11-12 09:30 巅峰之旅 阅读(348) 评论(0) 推荐(0) 编辑