logoalt Hacker News

xyzsparetimexyz • today at 10:17 PM • 1 reply • view on HN

I never worked out what a Bean was


Replies

rybosome • today at 10:27 PM

A Bean was a specific type of Java class that only consisted of getters, setters, and plain fields. A data class.

This was from early days in Java, and I think the predominant use case was for code generation. Things like databases, etc. - you'd get generated Bean-style classes.

➕ show 1 reply