anonymous
  • anonymous
Generally, what is the difference between static and non static? Specifically, what is the difference between static methods and non-static methods?
Computer Science
  • Stacey Warren - Expert brainly.com
Hey! We 've verified this expert answer for you, click below to unlock the details :)
SOLVED
At vero eos et accusamus et iusto odio dignissimos ducimus qui blanditiis praesentium voluptatum deleniti atque corrupti quos dolores et quas molestias excepturi sint occaecati cupiditate non provident, similique sunt in culpa qui officia deserunt mollitia animi, id est laborum et dolorum fuga. Et harum quidem rerum facilis est et expedita distinctio. Nam libero tempore, cum soluta nobis est eligendi optio cumque nihil impedit quo minus id quod maxime placeat facere possimus, omnis voluptas assumenda est, omnis dolor repellendus. Itaque earum rerum hic tenetur a sapiente delectus, ut aut reiciendis voluptatibus maiores alias consequatur aut perferendis doloribus asperiores repellat.
katieb
  • katieb
I got my questions answered at brainly.com in under 10 minutes. Go to brainly.com now for free help!
anonymous
  • anonymous
Static.. permanent .. not static.. is not set in stone.. as applied to what exactly?
anoop27
  • anoop27
Static=fixed(that never changes) example=person Name,Date of birth Non-Static= not fixed example=Age,Address etc.
anonymous
  • anonymous
non static must be instantiated first MyClass mc = new MyClass(); now you can use MyClass(). static doesn't require instantiating the object first. But keep in mind a static method can't access instance methods or variables of the class. MyClass.DoWork(); where do work is a static method found inside MyClass().

Looking for something else?

Not the answer you are looking for? Search for more explanations.

More answers

anonymous
  • anonymous
Static is shared across classes, you dont have to create instances for each class
anonymous
  • anonymous
@akhaliq You can have private static methods too.
anonymous
  • anonymous
true

Looking for something else?

Not the answer you are looking for? Search for more explanations.