I would like to know about
'class level or 'static' getters and setters ' in java beans. What are they how and where they are used. Any links, ideas, resources, sample code highly appreciated. Thanks in advance.
I presume you're confused with the difference between "class level", "static" & "getter & setters".
If you declare your method to be static, then you can use the method in another class without the need of creating any instance for it.
A static variable can also be accessed in the same way.
Getter & Setters methods are basically used for private variables to be used in another class using the methods and not the variables as such.
Hope it helps!
Music is all around us. All you have to do is just LISTEN to it,
We should throw him a surprise party. It will cheer him up. We can use this tiny ad: