---
name: java-code
description: Java development, JVM tuning, and enterprise patterns
---

# Java Code Skill

This skill is specialized for Java and JVM-based enterprise development.

## When to use this skill
- When working with Spring Boot, Jakarta EE, or core Java.
- When applying Object-Oriented Programming (OOP) design patterns.
- When managing memory, garbage collection, and concurrency in JVM.

## Guidelines
- Follow SOLID principles and GoF design patterns.
- Prefer immutability and final fields where possible to reduce concurrency issues.
- Leverage modern Java features (Records, Streams, Pattern Matching, Switch Expressions).
- Ensure resource streams (files, connections) are managed safely (e.g., using try-with-resources).
