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.

Leave a Reply
You May Also Like

THE Best Places To Learn About CPA Marketing

When you’re first getting into CPA marketing, everything you read about can…

Make Money Online with Josh – Project Journal #1

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