摘要: test1:package StringTest;public class test1 { /** * @param args */ public static void main(String[] args){ String a = "a1"; ... 阅读全文
posted @ 2016-01-23 23:13 VinoZhu 阅读(968) 评论(0) 推荐(0) 编辑
摘要: public和private基本没问题,主要是默认的和protected之间的区别 同一包中默认的和protected一样,所以来看看不同包的情况 看下如下代码,两个类位于不同包: 加上protected修饰符: 阅读全文
posted @ 2016-01-23 22:06 VinoZhu 阅读(253) 评论(0) 推荐(0) 编辑