Programming Tutorials

Comment on Tutorial - Advantages of Java Beans By Priya



Comment Added by : Andreas

Comment Added at : 2012-09-23 23:01:01

Comment on Tutorial : Advantages of Java Beans By Priya
This says nothing meaningful.

So how having a non-args constructor makes my code reusable? And doesn't having setters for all fields compromise security? A field may not not need a setter, but rather be the result of computation.

Everyone uses the word bean, nobody seems to understand the advantages of writing your class as one, and when its suitable to do so. This is just generic examples of nothing...


View Tutorial