Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Latest commit

 

History

History
History
2 lines (2 loc) · 504 Bytes

File metadata and controls

2 lines (2 loc) · 504 Bytes
Copy raw file
Download raw file
Edit and raw actions

Objects, immutability and switch expressions

This chapter includes 18 problems that involves objects, immutability and switch expressions. The chapter starts with several problems about dealing with null references. It continues with problems regarding checking indexes, equals() and hashCode(), and immutability (e.g., writing immutable classes, passing/returning mutable objects from immutable classes). The last part of the chapter deals with cloning objects and JDK 12 switch expressions.

Morty Proxy This is a proxified and sanitized view of the page, visit original site.