Skip to main content
Journey Uncommon Logo
JourneyUncommon
mediumJavarecords and compact constructorsSingle-choice MCQ

A record's canonical constructor is written in FULL (non-compact) form. What rule does it have to satisfy that a compact constructor handles automatically?

record Range(int lo, int hi) { Range(int lo, int hi) { // ... } }