Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

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,650 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! :)