Java · Medium · ProCan a Java Record have custom methods, implement interfaces, and be generic? Explain with examples.JavaJava 17+