Skip to content
CodeWiki
Practice
Paths
Tracks
Cheatsheets
Playground
Glossary
AI era
Search
⌘K
English
English
Chinese
Practice
Paths
Tracks
Cheatsheets
Playground
Glossary
AI era
English
English
Chinese
Practice
/
Quiz
/
Java
/
Records
Without `case null`, what happens when a pattern switch over records receives null?
from Records
Java 25 LTS
intermediate
1 min
Without `case null`, what happens when a pattern switch over records receives null?
It throws NullPointerException.
It matches the first record pattern with null components.
It always matches default.
It returns the zero value of the switch result type.
Check
Ask AI about this kata
Report an error
previous kata
What does this program print?
Predict the output
next kata
Review generated archive request key
Review AI code
A new version is available
Reload