Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community!
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.Start your free trial
Chris GauthierCourses Plus Student 6,434 Points
Static Methods and Variables in a java program
Im taking the Java Objects course, right now. I've just done the part on static methods and fields.
Im wondering, however, when designing a class, what is the policy behind using these variables. ie) why don't we just use a normal field with a getter / setter or a public method on an instanciated object?