An instance method is a method used only for THAT VERY INSTANCE. A static method is FOR EVERY INSTANCE.

Here’s a little code snippet to make your life easier. As usual.

public class InstanceAndStaticExample {
    public static void main(String[] args) {    
        //A static method with set all Person class thingys to "John Doe"
        Person.setName("John Doe");

        //An instance method however...        
        Person Obama = new Person();

In the case above. If you set the name in a static way.. all the persons are called John Doe. If you make an instance and use an instance method, then you only set that Object’s name. To “God” in this case.

Until next time, Josh.

  1. Pingback: wire qwest
  2. Pingback: 사설토토
  3. Pingback: kompas qq
  4. Pingback: taipanqq
  5. Pingback: rajaqq
  6. Pingback: Buy CBD Products
  7. Pingback: rajaqq
  8. Pingback: website
  9. Pingback: wayangpoker
  10. Pingback: Reese
Leave a Reply
You May Also Like

5 Solid Reasons Why You Should Be Branding Yourself on Snapchat

Snapchat‘s been around for a while, I have used it a lot…

Make Money Online with Josh – Project Journal #1

  The first project journal post I’ve done so far. These are…