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.

Should one never use static inline function?

There are two implications of using the inline keyword(§ 7.1.3/4): It hints the compiler that substitution of function body at the …

c++ static inline
Why would a static nested interface be used in Java?

I have just found a static nested interface in our code-base. class Foo { public static interface Bar { /* snip */ } /* snip */ } I …

java interface static
C/C++ global vs static global

Possible Duplicate: Static vs global I'm confused about the differences between global and static global variables. If static means that …

c++ c static global-variables
Why won't extern link to a static variable?

Why does extern int n not compile when n is declared (in a different file) static int n, but works …

c static extern
C# : What if a static method is called from multiple threads?

In my Application I have a static method that is called from multiple threads at the same time. Is there …

c# multithreading static
Static global variables in C++

I would like to make an array of integers via the malloc method. I want this array to be global …

c++ variables pointers static global
Is it possible to get CMake to build both a static and shared version of the same library?

Same source, all that, just want a static and shared version both. Easy to do?

static cmake shared
How to instantiate non static inner class within a static method?

I have the following piece of code: public class MyClass { class Inner { int s, e, p; } public static void main(…

java static inner-classes
Why can't we use 'this' keyword in a static method

class Sub { static int y; public static void foo() { this.y = 10; } } I understand that this represents the object invoking the …

java oop static this
When does static class initialization happen?

When are static fields initialized? If I never instantiate a class, but I access a static field, are ALL the …

java static initialization