While diving deep into my OCP Java SE 21 preparation, I stumbled upon two fascinating edge cases that are easy to miss during standard application development.
Here is what happened when I experimented with Records and the super keyword.
1-You Can't Name Record Components Anything You Want
In Java Records, the compiler automatically generates accessor methods using the exact name of each record component. I decided to test what happens if I name a component toString:
// ❌ Compilation Error!






