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! While you're at it, check out some resources Treehouse students have shared here.
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 trialNure México
25,840 PointsWhat does Static stands for?
What is the purpose of declaring a method Static, I've heard that it's for eliminate inheritance in Java. But I don't have that really clear.
4 Answers
Craig Dennis
Treehouse TeacherI find this easiest to think of as a property of the blueprint, or class
, and not requiring an object
, or instance, to be used.
We'll do more with them in the near future.
Chris Shaw
26,676 PointsHi César,
Have a read of the following link which contains a lot more information than what I can put into a single reply.
http://beginnersbook.com/2013/05/static-vs-non-static-methods/
Hope that helps.
Axel McCode
13,869 PointsHi Cesar! After a quick google search for this question, I found this Stack Overflow post.
http://stackoverflow.com/questions/2649213/in-laymans-terms-what-does-static-mean-in-java
Take a look through the answers, It helped me better understand static methods/variables in Java, hope this helps you as well! :)