Design Patterns in Java Cheat Sheet | 23 GoF Patterns, Runnable Code, Interview Questions (Digital Download)
Price:$19.00
Here's what's eligible:
- Your order doesn't match the item description or photos
- Your item arrived damaged
- Your item arrived after the estimated arrival window
- Your item didn't arrive or was lost in the mail
You can only make an offer when buying a single item
Highlights
All 23 Gang of Four design patterns in Java, each as ONE short Java 21 file that compiles and runs, with a JUnit test that passes. Plus a one-page when-to-use cheat sheet and 69 interview questions with short answers.
WHY THIS KIT
• All 23 GoF patterns, one file each: 22 to 56 lines (median 32). Modern Java 21: records, sealed interfaces, switch pattern matching and lambdas instead of getter boilerplate.
• It runs: 34 JUnit 5 tests in 23 test classes pass with mvn test on Java 21 and on Java 25 (same output on both). No Maven? run-all.sh / run-all.cmd compile with javac and run all 23 examples.
• Plain explanations: for every pattern the problem, the idea and when NOT to use it, plus the "before" code smell it replaces and the real output of the file.
• Interview ready: 69 questions (3 per pattern) with short answers, and where the JDK itself uses each pattern (Comparator, InputStreamReader, Integer.valueOf, java.lang.reflect.Proxy...).
WHAT IS INSIDE (one ZIP)
• Maven project: src/main/java (23 examples: creational 5, structural 7, behavioral 11), src/test/java (23 JUnit 5 test classes, 34 tests), pom.xml, run-all.sh, run-all.cmd, README
• Design-Patterns-Java-Kit.pdf, 30 pages: when-to-use chart (page 2), one page per pattern with code and output, drill sheet with questions only, answers, JDK table
• drills.csv: the 69 questions and answers for Anki or any flashcard app
• ai-rules: a Claude Code skill and a Cursor rule that spot where a pattern fits in your own Java code
HOW TO USE
1. Unzip and open the folder in IntelliJ IDEA, Eclipse or VS Code as a Maven project.
2. Run mvn test, or ./run-all.sh (Windows: run-all.cmd). Any single file also runs with: java src/main/java/dp/behavioral/StateExample.java
3. Print page 2 (the chart) and keep the drill sheet for interview practice.
GOOD TO KNOW
• Instant download, nothing is shipped.
• Needs Java 21 or newer (free JDK). Maven is optional.
• Code and explanations are in English. The examples use made-up shop data (prices in cents, demo tax rates, a fixed demo exchange rate).
• Copy the code into your own projects freely. Please do not resell the kit.
Instant Download
Your files will be available to download once payment is confirmed. Here's how.
Instant download items don’t accept returns, exchanges or cancellations. Please contact the seller about any problems with your order.
Etsy Purchase Protection
Shop confidently on Etsy knowing if something goes wrong with an order, we've got your back for all eligible purchases —
see program terms
More from this shop
Visit shop-
Digital download
Lebenslauf Vorlage Deutsch, Lebenslauf erstellen – Tabellarischer Lebenslauf Word Vorlage | Beispiel, ATS Abgleich Excel
$7.88
-
Digital download
stencil tatuagem planilha Excel | Portuguese, escala %, dpi efetivo (Digital Download)
$10.49
-
Digital download
Steuererklärung 2027 ab wann abgeben Excel Rechner | German, Abgabepflicht prüfen, Frist 2026 (Digital Download)
$10.49
-
Digital download
Motivationsschreiben Vorlage Word mit Beispiel | Studium, Master, Ausbildung, dritte Seite, DIN 5008, Google Docs (Digital Download)
$7.99
Be the first to leave a review
-
Digital download
CodeFlow Digital Developer Planner with Bug Tracker and Code Snippets
Sale Price $5.24
Original Price $6.99
-
Digital download
Core and Advanced Java Programming Notes PDF | Handwritten Aesthetic Study Guide for Computer Science / IT Students | Printable Java Notes
Sale Price $10.85
Original Price $27.11
-
Digital download
Adobe InDesign 2024 Guide: Shortcuts, AI Tools, File Formats, FAQs - 15-Page PDF, Multi-User Discounts, Digital Download
$9.95
-
Digital download
Shortcut Claude Code Command Cheat Sheet: Commands Reference (PDF)
Sale Price $3.27
Original Price $13.09
-
Digital download
Adobe Illustrator Cheat sheet: Tools, Tips, Quick Reference & Keyboard shortcuts
$18.85
-
Digital download
COMPLETE C++ GUIDE to Learn the Concepts of Coding Programming Computer Science
$19.99
-
Digital download
Javascript Cheat Sheet Horizontal Poster JavaScript Learn Coding Guide Web Developer Tool Poster JS Syntax Chart Learning Software Tips
Sale Price $4.35
Original Price $6.69
-
Digital download
JavaScript 2025 Cheat Sheet PDF – Essential Guide for Beginners & Pros | Quick Reference, Coding Tips, and JavaScript Fundamentals
$8.00
-
Digital download
C++ Study Guide PDF | Step-by-Step Programming Lessons & Cheat Sheet
$4.59
-
Digital download
C++ Programming Language Notes PDF | Aesthetic Programming Study Guide | OOP Concepts for Computer Science Students | Learn C Plus Plus Code
Sale Price $9.04
Original Price $22.59
-
Digital download
C# Cheat Sheet Horizontal Poster C# Coding Guide C# Android Programming Learning .net Developer Tool C# Programming Poster Csharp Developer
Sale Price $4.35
Original Price $6.69
-
Digital download
C Programming Language Study Notes PDF | Aesthetic Study Guide for CS & Software Engineering Students | Printable Lecture Notes
Sale Price $9.04
Original Price $22.59
Shoppers with similar taste loved these
-
Welcome Doormat: Geeky Localhost Quote - Coir, Durable, Artistic
Sale Price $19.50
Original Price $35.45
-
Floppy Disk and USB Shirt, Computer Shirts, Engineer Gifts, Funny Tech and Computer Science Shirts, Engineering or Coding Father Gift TShirt
Sale Price $14.00
Original Price $20.00
-
IT Helpdesk Tech Support Poster - Retro Custom Tech Wall Art, Office Decor for Men
Sale Price $23.27
Original Price $27.38
-
There's No Place Like 127.0.0.1, Laser Engraved, Wood Block, Computer Science, Computer Sign, Nerd Decor, Computer Geek Gifts, 127001, Geek
$24.99
-
There Is No Cloud It's Just Someone Else's Computer, Funny IT Tech Mug, IT Professional Gifts, Sys Admin, Programmer Cup, Engineer Nerd Gift
Sale Price $16.06
Original Price $22.95
-
Digital download
Information Technology Swear Words PRINTABLE Office Decor, Funny IT Gift, Computing Gift, Computer Terms Wall Art, CIO Pet Peeves, DOWNload
Sale Price $4.37
Original Price $5.82
-
Geek Shirt | Funny Computer T-Shirt for Men | Nerdy Gift for Tech Guys, Programmers, and IT Pros | Hilarious Coding Tee | Porpoise Tees
$22.49
-
Cybersecurity, Cyber Security, Computer Science, Internet Security, Cybersecurity Gift, Information Security, Funny Cybersecurity, CISO
Sale Price $13.46
Original Price $17.95
-
I Could Be Meaner Sweatshirt, Spicy Attitude Sweater, Confident Crewneck, Funny Parent Crewneck, Mean Friend Shirt, Gift For Nice People
$33.99
-
Common TCP/UDP Ports Mug 11oz Ceramic | Gift for Network Admin, ccna, SysAdmin, IT, DevOps
$16.99
-
Open source software and programming language logos - 68 pieces of laptop decoration stickers
Sale Price $5.16
Original Price $6.88
-
Debugging spray sticker | Funny programmer sticker, Computer science major sticker, Software engineer gift, Developer sticker, Tech gift
$9.99