Autogeneration of Get & Set methods?
Yes. Eclipse Does this. To generate setter/getter, select the class in package explorer, right click -> Source -> Generate getter/setting.
Netbean also does this. Right click anywhere inside your class -> insert code-> setter/getter.
we do that to encapsulate the implementation details. you can find more explanations Why use getters and setters
Try this on Eclipse
Right click the file -> Source -> Generate Getters and Setters
Try this on IDEA
Right click anywhere in the file -> Generate -> Getter and Setter