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

Which override is legal inside a record, and which would break record semantics?

record Point(int x, int y) { // candidate overrides }