Tag Archive for Design

Top 10 Design Pattern Interview Questions and Answers Creational,structural,Behavioral

Top 10 Design Pattern Interview Questions and Answers Creational,structural,Behavioral

Top 10 Design Pattern Interview Questions : Design Pattern Interview Questions :

1. What is Design Pattern ? Explain its advantages ?

A design pattern systematically names, motivates, and explains a general design that addresses a recurring design problem in object-oriented systems.
It describes the problem, the solution, when to apply the solution, and its consequences. It also gives implementation hints and examples. The solution is a general arrangement of objects and classes that solve the problem. The solution is customized and implemented to solve the problem in a particular context. 2.Different Types of Design Patterns ?
There are three basic classifications of patterns: Creational, Structural, and Behavioral patterns.
Creational Patterns :Abstract Factory: Creates an instance of several families of classes
Builder: Separates object construction from its representation
Factory Method: Creates an instance of several derived classes
Prototype: A fully initialized instance to be copied or cloned
Singleton: A class in which only a single instance can exist
Structural Patterns :
Adapter: Match interfaces of different classes
Bridge: Separates an object’s abstraction from its implementation
Composite: A tree structure of simple and composite objects
Decorator: Add responsibilities to objects dynamically
Façade: A single class that represents an entire subsystem
Flyweight: A fine-grained instance used for efficient sharing
Proxy: An object representing another object
Behavioral Patterns :
Mediator: Defines simplified communication between classes
Memento: Capture and restore an object’s internal state
Interpreter: A way to include language elements in a program
Iterator: Sequentially access the elements of a collection
Chain of Resp: A way of passing a request between a chain of objects
Command: Encapsulate a command request as an object
State: Alter an object’s behavior when its state changes
Strategy: Encapsulates an algorithm inside a class
Observer: A way of notifying change to a number of classes
Template Method: Defer the exact steps of an algorithm to a subclass
Visitor: Defines a new operation to a class without change
What is Builder design pattern in Java ? When do you use Builder pattern in Java ?
What is Singleton pattern in Java ?
What is decorator pattern in Java ? Can you give an example of Decorator pattern ?
Attach additional responsibilities to an object DYNAMICALLY.
What is Factory pattern in Java? What is advantage of using static factory method to create object ?A factory method pattern is a creational pattern. It is used to instantiate an object from one among a set of classes based on a logic.
What is Observer design pattern in Java ? When do you use Observer pattern in Java ?
Can you write thread-safe Singleton in Java ?[“Double checked locking”]

Hugs & Kisses XOXO EASY nail designs for short nails- Beginners- home nail art tutorial Nail design

Website for Nail Art – http://www.superwowchannels.com/ Website for teens and ladies – http://www.babytoteens.com/category/teens-fashion/ Facebook – https://…

Elegant Nail Tip- EASY nail designs for short nails- nail design and nail art tutorial

website for girls and women – http://www.babytoteens.com/ Elegant Nail Tip- EASY nail designs for short nails- nail design and nail art tutorial- elegant fre…
Video Rating: 0 / 5

Fresh Spring – EASY Nail Designs for Beginners- nail design short nails- home nail art tutorial

Website for Nail Art – http://www.superwowchannels.com/ Website for teens and ladies – http://www.babytoteens.com/category/teens-fashion/ Facebook – https://…

Modern Art Inspired! Easy nail design- beginners nail designs for short nails tutorial at home

website for girls and women – http://www.babytoteens.com/ complete blogspot video profile and pictures – http://easynaildesignstodoathome.blogspot.in/2012/04…
Video Rating: 5 / 5

My Spanish Channel Link: http://www.youtube.com/user/LOVE4NAILSenEspanol Hello You Guys!!! I hope your week is going good, I wanted to bring you a fun abstra…

Easy Nail Art For Beginners – easy nail designs for short nails- nail design nail art tutorial- home

Website for Nail Art – http://www.superwowchannels.com/ Website for teens and ladies – http://www.babytoteens.com/category/teens-fashion/ Facebook – https://…
Video Rating: 0 / 5

Black Tie Event Nail Art Design Tutorial

My Spanish Channel Link: http://www.youtube.com/user/LOVE4NAILSenEspanol Hello You Guys!!! Happy Friday ~ A while ago my husband & I were invited to a black …
Video Rating: 4 / 5

Victorian Design French Tip ! EASY nail designs for short nails- nail art tutorial beginners

A complete website for teens, ladies! – http://www.babytoteens.com/ Victorian Design French Tip ! EASY nail designs for short nails- nail art tutorial- elega…

Halloween Nail Design- Polka Dot Spiders

Hi Everyone! I realized after uploading that I forgot to add 8 legs to my spiders! I do know that about spiders just wasn’t thinking at the time when designi…

Silver Flowers French Tip! Easy nail design Beginners nail art designs tutorial short nails home

website for girls and women – http://www.babytoteens.com/ complete blogspot video profile and pictures – http://easynaildesignstodoathome.blogspot.in/2012/04…
Video Rating: 0 / 5