摘要: Aggregation (HAS-A) HAS-A relationship is based on usage, rather than inheritance. In other words, class A has-a relationship with class B, if code in 阅读全文
posted @ 2016-06-26 23:28 morningdew 阅读(317) 评论(0) 推荐(0) 编辑
摘要: Inheritance (IS-A) when a class extends another another class it inherits all non private members including fields and methods. Inheritence in Java ca 阅读全文
posted @ 2016-06-26 23:24 morningdew 阅读(239) 评论(0) 推荐(0) 编辑
摘要: reference: http://www.studytonight.com/java/modifier-in-java.php Modifiers are keywords that are added to change meaning of a definition. In java, mod 阅读全文
posted @ 2016-06-26 23:12 morningdew 阅读(536) 评论(0) 推荐(0) 编辑
摘要: Garbage Collection In Java destruction of object from memory is done automatically by the JVM. When there is no reference to an object, then that obje 阅读全文
posted @ 2016-06-26 21:13 morningdew 阅读(252) 评论(0) 推荐(0) 编辑
摘要: A class can have only public or default(no modifier) access specifier. It can be either abstract, final or concrete (normal class). It must have the c 阅读全文
posted @ 2016-06-26 20:40 morningdew 阅读(282) 评论(0) 推荐(0) 编辑
摘要: In Java, Data types are classified into two categories: 1. Primitive Data Type 2. Non-Primitive Data Type there are 8 primitive data types: char boole 阅读全文
posted @ 2016-06-26 20:05 morningdew 阅读(194) 评论(0) 推荐(0) 编辑
摘要: 参考: http://www.cnblogs.com/java-chl/p/5614940.html http://www.studytonight.com/java/component-of-java.php JVM 生命周期 程序开始执行它才运行,程序结束时它就停止。一台机器上运行几个程序就有几 阅读全文
posted @ 2016-06-26 16:09 morningdew 阅读(234) 评论(0) 推荐(0) 编辑
摘要: 此文参考: http://www.cnblogs.com/liu-5525/p/5614463.html http://www.studytonight.com/java/abstract-class.php http://www.studytonight.com/java/java-interfa 阅读全文
posted @ 2016-06-26 15:17 morningdew 阅读(268) 评论(0) 推荐(0) 编辑
摘要: 此文参考: http://www.cnblogs.com/liu-5525/p/5614425.html 1. classLoader 如何加载 class ClassLoader 负责将 .class 文件(可能在disk上,可能在网络上) 加载到 RAM 里面, 并为之生成对应的 [java.l 阅读全文
posted @ 2016-06-26 13:29 morningdew 阅读(163) 评论(0) 推荐(0) 编辑