摘要: What is the Iterator Design Pattern? The Iterator pattern provides you with a uniform way to access different collections of Objects. If you get an Ar 阅读全文
posted @ 2019-07-22 17:03 CodingYM 阅读(117) 评论(0) 推荐(0) 编辑
摘要: What is the Visitor Design Pattern? Allows us to add methods to classes of different types without much altering to those classes. We can make complet 阅读全文
posted @ 2019-07-22 16:53 CodingYM 阅读(179) 评论(0) 推荐(0) 编辑
摘要: In State pattern a class behavior changes based on its state. This type of design pattern comes under behavior pattern. In State pattern, we create ob 阅读全文
posted @ 2019-07-22 14:58 CodingYM 阅读(193) 评论(0) 推荐(0) 编辑
摘要: --referenced from the book "Head First Design Pattern." Publishers + Subscribers = Observer Pattern Observer pattern is used when there is one-to-many 阅读全文
posted @ 2019-07-22 13:15 CodingYM 阅读(239) 评论(0) 推荐(0) 编辑
摘要: In Strategy Pattern, a class behaviour or its algorithm can be changed at run time. This type of design pattern comes under behaviour pattern. In stra 阅读全文
posted @ 2019-07-22 11:08 CodingYM 阅读(283) 评论(0) 推荐(0) 编辑
摘要: There are four types reference types in Java Namely, StrongReference: Strong reference is very common in our daily code, for example Object obj = new 阅读全文
posted @ 2019-07-18 16:56 CodingYM 阅读(196) 评论(0) 推荐(0) 编辑
摘要: Heap Memory: Only for objects: immutable objects, class objects Stack Memory method specific values local variables static variables constant variable 阅读全文
posted @ 2019-07-18 11:39 CodingYM 阅读(111) 评论(0) 推荐(0) 编辑
摘要: Some basic concepts: What is the difference between JVM, JRE, and JDK JVM: Java Virtual Machine It Provides Runtime Environment in which Java bytecode 阅读全文
posted @ 2019-07-17 17:20 CodingYM 阅读(167) 评论(0) 推荐(0) 编辑
摘要: (Draft ... to be continued ) Adapter Pattern Similarly for our HandlerAdaptor. 阅读全文
posted @ 2019-06-05 15:06 CodingYM 阅读(108) 评论(0) 推荐(0) 编辑
摘要: Following previous article, "Spring MVC HelloWorld example Part 1 In this part, I am going to show example on how to define Handler Mapping in our xml 阅读全文
posted @ 2019-06-05 11:18 CodingYM 阅读(138) 评论(0) 推荐(0) 编辑