bloch-effective-java

Provides reference guidance on all 90 items from Effective Java, 3rd Edition.

Updated Jul 28, 2026
One-click install
npx skills add https://github.com/zademy/book-to-skill-zademy --skill bloch-effective-java-zademy
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: bloch-effective-java
Source: https://github.com/zademy/book-to-skill-zademy/tree/main/.agents/skills/bloch-effective-java
Command: npx skills add https://github.com/zademy/book-to-skill-zademy --skill bloch-effective-java-zademy

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve? Java developers often need quick, authoritative answers on design decisions like when to use builders, how to apply PECS wildcards, or how to handle serialization safely, without rereading an entire book. This Skill indexes Joshua Bloch's Effective Java (3rd Edition) so those answers are retrievable by topic, item, or chapter. ## Core Features & Use Cases - Topic-based lookup: Ask about builder, PECS, streams, equals/hashCode, concurrency idioms, or serialization and get the relevant chapter content with code examples. - Chapter navigation: Request a specific chapter (ch01–ch12) covering object creation, generics, enums, lambdas/streams, exceptions, concurrency, and serialization. - Reference aids: A cheatsheet with decision trees and code smells, a glossary of key terms, and a patterns catalog mapping 26 techniques to specific Items. - Use Case: While reviewing a pull request that uses raw types and a tagged class, ask about generics and class hierarchies to cite Items 23, 26, and 31 with the exact reasoning from the book. ## Quick Start Ask the agent to explain the PECS rule for generics wildcards and show the relevant guidance from Effective Java chapter 5.

Frequently Asked Questions about bloch-effective-java

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I look up a specific Effective Java item or topic?▼

Ask about a topic like builder, PECS, streams, or equals/hashCode, and the relevant chapter is loaded before answering. You can also request a chapter directly, such as ch05 for generics, or ask what chapters are available to see the full index.

What topics does Effective Java 3rd Edition cover?▼

It covers 90 items across 12 chapters: object creation and destruction, methods common to all objects, classes and interfaces, generics, enums and annotations, lambdas and streams, methods, general programming, exceptions, concurrency, and serialization.

When should I use a builder instead of a constructor in Java?▼

Use a builder when a constructor would need four or more parameters, especially optional ones. Builders are fluent, safe for optional parameters, and simulate named arguments, while telescoping constructors become unreadable at scale (Item 2).

Does this cover modern Java features like records and virtual threads?▼

No. The content reflects the 3rd edition, which targets the Java 9 era. Records, sealed classes, and virtual threads postdate the book, so for those topics you should consult other sources or ask the agent directly.

What is the PECS rule in Java generics?▼

PECS stands for Producer-extends, Consumer-super (Item 31). Use ? extends T for parameters that produce values and ? super T for parameters that consume them, and never use wildcards in return types.