Category: Java

Singleton Pattern in Java

5 Singleton Pattern is regarded as one of the most fundamental design patterns of JAVA. The name draws from the mathematical idea of a singleton set that only has one element in it. It is its own super-set as well as subset. On mapping it to JAVA, by definition, a Singleton pattern is established when […]

Continue Reading

Prototype Design Pattern in Java

5 This design pattern works to the truest sense of the word ‘Prototype’. Another one of the creational design patterns, the Prototype Design Pattern finds use, where there is a requirement of creating numerous objects, and all of them, will have same or similar attributes. In such cases, a prototype object is created with generalized […]

Continue Reading

Observer Pattern in Java

3 Observer Pattern falls under Behavioural Design Patterns as it studies closely the behaviour of the subject object. This pattern is based on the interdependency of a subject with its observers. The observers study the behaviour of the subject closely and change accordingly whenever a subsequent change is seen in the subject. Definition By Definition, […]

Continue Reading

Mediator Pattern in Java

2 A program is considered to be efficient if it has less coupling between its software module. However, this does not mean that objects should not have the necessary interactions between them. Often situations arise when objects have to be tightly coupled so that fast interaction between them is possible. The mediator pattern comes into […]

Continue Reading

Interpreter Design Pattern in Java

4 The Interpreter Design Pattern defines the grammatical representation for an object-oriented programming language. It governs the nuances of syntax and provides users with a concrete interpreter that will refer to the representation provided by the pattern itself to decode lines of code written in that particular language. A simple way to think of it […]

Continue Reading

Flyweight Pattern in Java

1 Flyweight Pattern is a memory-efficient JAVA design pattern that is an integral part of structural design patterns. This pattern is used in a code that requires a huge number of objects to be created. As the name suggests, objects created using this pattern (generally referred to as flyweight objects) take up as less memory […]

Continue Reading

Factory Pattern in Java

2 One of the key creational patterns of JAVA, the Factory design pattern in Java is used in programs that deal with several classes. This structure of coding is commonly used in the Java Development Kit. Certain frameworks also make use of this effective pattern such as Spring and Struts. Object manipulation such as testing, […]

Continue Reading

Java Web Services

1 In general terms, web services are software-based interactions that take place between a client and a server over the Internet or the World Wide Web. The mode of interaction or the protocol that is normally followed is the HyperText Transfer Protocol (HTTP). Any kind of web service works on the principle of interoperability between […]

Continue Reading

Facade Design Pattern in Java

2 If you look up the meaning of Facade, the work means the front of a building. Facade only represents the beautiful exterior with glass walls and fancy decorations. What it hides from an onlooker is the complex pipelining, electrical circuits, and drainage system. While these components are essential to make a beautiful house, it […]

Continue Reading

Translate »