Skip to main content
  • Book
  • © 2019

Java Design Patterns

A Hands-On Experience with Real-World Examples

Apress

Authors:

  • Presents a complete implementation for each topic; the outputs are generated using the latest edition of Eclipse (the most popular IDE in this area)
  • Includes an in-depth Q&A session in each chapter to help you understand the pros and cons of each design pattern
  • Covers alternative design patterns, including the Simple Factory Pattern, the Null Object Pattern, and the MVC Pattern

Buy it now

Buying options

eBook USD 39.99
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever

Tax calculation will be finalised at checkout

Other ways to access

This is a preview of subscription content, log in via an institution to check for access.

Table of contents (29 chapters)

  1. Front Matter

    Pages i-xxxiii
  2. Gang of Four Patterns

    1. Front Matter

      Pages 1-1
    2. Singleton Pattern

      • Vaskaran Sarcar
      Pages 3-17
    3. Prototype Pattern

      • Vaskaran Sarcar
      Pages 19-31
    4. Builder Pattern

      • Vaskaran Sarcar
      Pages 33-54
    5. Factory Method Pattern

      • Vaskaran Sarcar
      Pages 55-66
    6. Abstract Factory Pattern

      • Vaskaran Sarcar
      Pages 67-85
    7. Proxy Pattern

      • Vaskaran Sarcar
      Pages 87-102
    8. Decorator Pattern

      • Vaskaran Sarcar
      Pages 103-116
    9. Adapter Pattern

      • Vaskaran Sarcar
      Pages 117-134
    10. Facade Pattern

      • Vaskaran Sarcar
      Pages 135-146
    11. Flyweight Pattern

      • Vaskaran Sarcar
      Pages 147-163
    12. Composite Pattern

      • Vaskaran Sarcar
      Pages 165-178
    13. Bridge Pattern

      • Vaskaran Sarcar
      Pages 179-191
    14. Visitor Pattern

      • Vaskaran Sarcar
      Pages 193-215
    15. Observer Pattern

      • Vaskaran Sarcar
      Pages 217-231
    16. Strategy (Policy) Pattern

      • Vaskaran Sarcar
      Pages 233-249
    17. Template Method Pattern

      • Vaskaran Sarcar
      Pages 251-261
    18. Command Pattern

      • Vaskaran Sarcar
      Pages 263-283
    19. Iterator Pattern

      • Vaskaran Sarcar
      Pages 285-302

About this book

Get hands-on experience implementing 26 of the most common design patterns using Java and Eclipse. In addition to Gang of Four (GoF) design patterns, you will also learn about alternative design patterns, and understand the criticisms of design patterns with an overview of anti-patterns. For each pattern you will see at least one real-world scenario, a computer-world example, and a complete implementation including output.

This book has three parts. The first part covers 23 Gang of Four (GoF) design patterns. The second part includes three alternative design patterns. The third part presents criticisms of design patterns with an overview of anti-patterns. You will work through easy-to-follow examples to understand the concepts in depth and you will have a collection of programs to port over to your own projects.

A Q&A session is included in each chapter and covers the pros and cons of each pattern. The last chapter presents FAQs about the design patterns. The step-by-step approach of the book helps you apply your skills to learn other patterns on your own, and to be familiar with the latest version of Java and Eclipse.


What You'll Learn 

  • Work with each of the design patterns
  • Implement design patterns in real-world applications
  • Choose from alternative design patterns by comparing their pros and cons
  • Use the Eclipse IDE to write code and generate output
  • Read the in-depth Q&A session in each chapter with pros and cons for each design pattern


Who This Book Is For 


Software developers, architects, and programmers

Authors and Affiliations

  • Bangalore, India

    Vaskaran Sarcar

About the author

Vaskaran Sarcar obtained his Master of Engineering degree from Jadavpur University, Kolkata, in Software Engineering. Currently, he is Senior Software Engineer and Team Lead in the R&D Hub at HP Inc. India. He was a national Gate Scholar and has more than 12 years of experience in education and the IT industry. He is an alumnus of prestigious institutions in India such as Jadavpur University, Vidyasagar University, and Presidency University (formerly Presidency College). Reading and learning new things are his passions. You can connect to Vaskaran on LinkedIn.


Other books by Vaskaran include the following: Design Patterns in C# (Apress), Interactive C# (Apress), Interactive Object-Oriented Programming in Java (Apress), Java Design Patterns (First Edition) (Apress), C# Basics: Test Your Skill, and Operating System: Computer Science Interview Series.

Bibliographic Information

Buy it now

Buying options

eBook USD 39.99
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever

Tax calculation will be finalised at checkout

Other ways to access