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 trial

Java Java Objects (Retired) Harnessing the Power of Objects Helper Methods and Conditionals

What 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
STAFF
Craig Dennis
Treehouse Teacher

I 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
Chris Shaw
26,676 Points

Hi 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.

Ken Alger
STAFF
Ken Alger
Treehouse Teacher

Cesar;

There is a good discussion on this topic here. Post back if you still have questions.

Ken

Axel McCode
Axel McCode
13,869 Points

Hi 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! :)