Record class vs Record Pattern

Records vs Record Patterns in Java, using examples and real-world context.