Top "Static" questions

Static is a term used in some programming languages to define a function or data storage area (field) that is not bound to any specific object instance.

Are static methods inherited in Java?

I was reading A Programmer’s Guide to Java™ SCJP Certification by Khalid Mughal. In the Inheritance chapter, it explains …

java inheritance static
An object reference is required to access a non-static member

I'm having this error come up and I'm not sure why... I've tried to look it up, people are saying …

c# .net oop member static
How to initialize a static array?

I have seen different approaches to define a static array in Java. Either: String[] suit = new String[] { "spades", "hearts", "diamonds", "…

java arrays static playing-cards
Static Final Variable in Java

Possible Duplicate: private final static attribute vs private final attribute What's the difference between declaring a variable as static final …

java static final
Unresolved external symbol on static class members

Very simply put: I have a class that consists mostly of static public members, so I can group similar functions …

c++ class static members
How can I get a resource content from a static context?

I want to read strings from an xml file before I do much of anything else like setText on widgets, …

java android static constants android-resources
What is the difference between a static and const variable?

Can someone explain the difference between a static and const variable?

c++ c static constants
static function in C

What is the point of making a function static in C?

c static
C# static class constructor

Is there a work around on how to create a constructor for static class? I need some data to be …

c# class static constructor
@Autowired and static method

I have @Autowired service which has to be used from within a static method. I know this is wrong but …

java spring static autowired