Currently browsing author

Krishna Srinivasan, Page 117

java-thumbnail

Static keyword in Java

What is Static? static variables and static methods might better have been called perClass variables and methods. They inherited this misleading terminology …

java-thumbnail

Decorator Design Pattern in Java

Intent of Decorator Design Pattern: Attach additional responsibilities to an object dynamically.Decorators provide a flexible alternative to subclassing for extending functionality.[GoF,p175] Client …

java-thumbnail

Iterator Pattern

What is Iterator Pattern? Provide a way to access the elements of the aggregate object sequentially without exposing its underlying representation. Aggregate …

java-thumbnail

Abstract Factory Pattern

What is Abstract Factory Pattern? Provide an interface for creating families of related or dependent objects without specifying their concrete classes. Wikipedia …

java-thumbnail

Template Design Pattern

What is Template Design Pattern? An abstract class defines various methods and has one non-overridden method which calls the various methods. also …

java-thumbnail

Closures in Java 7.0

What is a closure? Wikipedia says: A closure is a function that is evaluated in an environment containing one or more bound …

java-thumbnail

Inner Classes in Java

As we all know what an inner class is so lets try to know few more rules about Inner Classes. Inner classes …

java-thumbnail

Abstract keyword In Java

What is Abstract As we all know,An abstract method declaration introduces the method as a member, providing its signature, return type, and …