• Post Reply Bookmark Topic Watch Topic
  • New Topic

When to make a method static  RSS feed

 
Marjorie Gyles
Ranch Hand
Posts: 42
Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
When should a method be static? What do you look for?
 
Jesper de Jong
Java Cowboy
Sheriff
Posts: 16048
88
Android IntelliJ IDE Java Scala Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Do you know what the keyword 'static' means exactly? See this page from Oracle's Java Tutorials: Understanding Instance and Class Members
 
Campbell Ritchie
Marshal
Posts: 56223
171
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Look for “Campbell Ritchie classification of methods” in the search link above.
 
Marjorie Gyles
Ranch Hand
Posts: 42
Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks guys. That helps a lot. I printed it out to keep beside me so I don't forget it. (Old timer's disease, ya know. )
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!