O'Reilly logo
  • Raheel Shahzad thinks this is interesting:

tem 12: Always override toString

From

Cover of Effective Java, 3rd Edition

Note

@ToString -- can implement this for you. https://projectlombok.org/features/ToString

You exclude few fields by using @ToString.Exclude. How Lombok will not create a fancy string, however, it will better than not implementing.