Using Design Patterns in Java Projects

Contents

Design Patterns
1
Design Patterns
PREVIEW2m 26s
2
Singleton Pattern
PREVIEW3m 13s
9
Decorator
7m 48s
10
Flyweight
9m 20s
11
Proxy
7m 36s
12
Facade
6m 5s
14
Command
11m 44s
15
Iterator
8m 24s
16
Visitor
9m 4s
17
Mediator
11m 38s
18
Memento
9m 48s
19
Observer
10m 40s
20
Strategy
8m 27s
21
State
10m 27s
22
Template
7m 56s
23
MVC
10m 27s
26
DAO
10m 27s
27

The course is part of this learning path

Design Patterns
Difficulty
Intermediate
Duration
4h 56m
Students
56
Ratings
5/5
starstarstarstarstar
Description

This course takes an in-depth look at how to use design patterns in your Java projects. We will then run through some example questions of what you could expect from the Oracle Certified Java EE exam.

Learning Objectives

  • Understand what design patterns are
  • Learn about the myriad of design patterns that you can use in your projects

Intended Audience

This course is intended for anyone who already has basic knowledge of Java and now wants to learn about Java EE 6.

Prerequisites

Basic knowledge of Java programming.

 

Transcript

Hello, dear friends. In this video, we will examine design patterns. So, let's begin. Software design patterns are common solutions to problems which are regularly encountered in programming. These particular patterns deal with object-oriented programming exclusively. So, applying these patterns to, say a functional environment is a thoroughly bad idea. Some pattern proponents even go so far as to say that in the object-oriented world these design patterns are full fledged to best practices. Though I often stop short of such an assertion. The patterns I'll be describing in this series originate from a book titled appropriately enough, "Design Patterns: Elements of Reusable Object-Oriented Software", written by a group of authors who have come to be known as the Gang of Four, as GoF. 

Some of the benefits of using design patterns are: design patterns are already defined and provides industry standard approach to solve a recurring problem, so it saves time if we sensibly use the design pattern. There are many Java design patterns that we can use in our Java-based projects. Using design patterns promotes reusability that leads to more robust and highly maintainable code. It helps in reducing total cost of ownership. TCO of the software product. Since design patterns are already defined, it makes our code easy to understand and debug. 

It leads to faster development and new members of team understand it easily. According to GoF, design patterns are classified in three groups: creational, structural, behavioral. For example, abstract factory singleton or prototype are creational design patterns. Adapter, composite, or facade are structural patterns. And observer, iterator, and visitor patterns are behavioral patterns. In the following videos, we will start examining design patterns by implementing Java projects. In the next video, we will start by looking into the singleton design pattern. See you in the next video.

 

About the Author
Students
1985
Courses
64
Learning Paths
4

OAK Academy is made up of tech experts who have been in the sector for years and years and are deeply rooted in the tech world. They specialize in critical areas like cybersecurity, coding, IT, game development, app monetization, and mobile development.

Covered Topics