Currently browsing category

Java, Page 36

java-thumbnail

Generic Methods in Java 5.0

In java 1.5 we have a feature called generic methods, with this we can write a method, which can be generic, means …

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 …

Pin It on Pinterest