Gang Of Coders
Home
About Us
Contact Us
All Static Solutions on Gang of Coders
Total of 231 Static Solutions
Static class variables and methods in Python
Python
Class
Oop
Static
Class Variables
Difference between static class and singleton pattern?
Design Patterns
Static
Singleton
What does "static" mean in C?
C
Syntax
Static
What is the equivalent of Java static methods in Kotlin?
Java
Kotlin
Static
Static variables in JavaScript
Javascript
Variables
Static
Closures
Adding a favicon to a static HTML page
Html
Static
Favicon
What is the Python equivalent of static variables inside a function?
Python
Static
Why are static variables considered evil?
Java
Static
When to use static classes in C#
C#
Class
Static
What is a "static" function in C?
C
Function
Static
Terminology
Can I add extension methods to an existing static class?
C#
Static
Extension Methods
Why doesn't Java allow overriding of static methods?
Java
Static
Overriding
Static Methods
New self vs. new static
Php
Static
Late Static-Binding
Change private static final field using Java reflection
Java
Reflection
Static
Private
Final
Why is the Java main method static?
Java
Static
Main
Static constant string (class member)
C++
String
Class
Static
Constants
Static vs class functions/variables in Swift classes?
Function
Class
Swift
Variables
Static
What does the 'static' keyword do in a class?
Java
Static
Oop
Language Features
Restriction
Mocking static methods with Mockito
Java
Unit Testing
Static
Mocking
Mockito
What is the lifetime of a static variable in a C++ function?
C++
Static
Lifetime
What is the difference between static func and class func in Swift?
Class
Static
Swift
What is the difference between a static and a non-static initialization code block
Java
Static
Static Initializer
Java: Static vs inner class
Java
Static
Inner Classes
What is the reason behind "non-static method cannot be referenced from a static context"?
Java
Static
Static Block in Java
Java
Static
private final static attribute vs private final attribute
Java
Static
Attributes
Private
Final
How do you create a static class in C++?
C++
Oop
Class
Syntax
Static
Why doesn't Mockito mock static methods?
Java
Methods
Static
Mockito
Static Initialization Blocks
Java
Static
Initialization
Static Block
Initialization Block
Volatile vs Static in Java
Java
Multithreading
Concurrency
Static
Volatile
Getting the class name from a static method in Java
Java
Static
ReSharper warns: "Static field in generic type"
C#
asp.net Mvc-3
Generics
Static
Resharper
The static keyword and its various uses in C++
C++
Static
Should a "static final Logger" be declared in UPPER-CASE?
Java
Static
Naming Conventions
Final
Logging
Does static constexpr variable inside a function make sense?
C++
Static
C++11
Constexpr
Why would a static nested interface be used in Java?
Java
Interface
Static
Why can't I inherit static classes?
C#
Inheritance
Static
Invoking a static method using reflection
Java
Reflection
Static
Static nested class in Java, why?
Java
Class
Static
Member
Are fluid websites worth making anymore?
Html
Css
Layout
Static
Fluid Layout
Should private helper methods be static if they can be static
Java
Static
Methods
Static Methods
Call static methods from regular ES6 class methods
Javascript
Class
Static
Ecmascript 6
Es6 Class
Are static class instances unique to a request or a server in ASP.NET?
C#
asp.net
Static
Static variables in member functions
C++
Static
Scope
What's a "static method" in C#?
C#
Methods
Static
static constructors in C++? I need to initialize private static objects
C++
Static
Private
Initializer
Static Constructor
TypeScript static classes
Javascript
Class
Static
Typescript
Retrieve only static fields declared in Java class
Java
Reflection
Static
Field
How can I get a resource content from a static context?
Java
Android
Static
Constants
Android Resources
Static member initialization in a class template
C++
Templates
Static
What is the use of a private static variable in Java?
Java
Variables
Static
Private
static function in C
C
Static
Difference between final static and static final
Java
Static
Final
Stack, Static, and Heap in C++
C++
Static
Garbage Collection
Stack
Heap Memory
What is the purpose of static keyword in array parameter of function like "char s[static 10]"?
C
Arrays
Parameters
Static
Is it possible to get CMake to build both a static and shared library at the same time?
Static
Cmake
Shared
Are static methods inherited in Java?
Java
Inheritance
Static
C++ static virtual members?
C++
Static
Virtual
Is it OK to use Gson instance as a static field in a model bean (reuse)?
Java
Static
Thread Safety
Gson
Static and Sealed class differences
C#
.Net
Oop
Static
Sealed
Why can't I declare static methods in an interface?
Java
Interface
Methods
Static
How does the ThreadStatic attribute work?
C#
Static
Threadstatic
Java synchronized static methods: lock on object or class
Java
Class
Static
Methods
Synchronized
Unresolved external symbol on static class members
C++
Class
Static
Members
How do I use the C#6 "Using static" feature?
C#
Visual Studio-2015
Static
Using
C# 6.0
Why can't we have static method in a (non-static) inner class (pre-Java 16)?
Java
Class
Static
Inner Classes
Is it possible to create static classes in PHP (like in C#)?
Php
Design Patterns
Oop
Static
Superiority of unnamed namespace over static?
C++
Static
Namespaces
Static Variables
Static Functions
Objective-C Static Class Level variables
Objective C
Variables
Static
Are non-synchronised static methods thread safe if they don't modify static class variables?
Java
Multithreading
Concurrency
Static
Thread Safety
C# static class constructor
C#
Class
Static
Constructor
Static variable inside of a function in C
C
Static
Why is a static method considered a method?
Java
Methods
Static
Static Methods
Terminology
Are Java static initializers thread safe?
Java
Multithreading
Static
Synchronization
Static Initializer
Behaviour of final static method
Java
Methods
Static
Final
C++ where to initialize static const
C++
Static
Initialization
Constants
Why can't I initialize non-const static member or static array in class?
C++
Static
Constants
Calling Non-Static Method In Static Method In Java
Java
Static
Non Static
How to instantiate non static inner class within a static method?
Java
Static
Inner Classes
Why we should not use protected static in java
Java
Oop
Inheritance
Static
Protected
Java: Static Class?
Java
Class
Oop
Static
Utility
Instance variables vs. class variables in Python
Python
Class
Variables
Static
Member
Static Indexers?
C#
.Net
Static
Indexer
Static Indexers
What's the best practice to keep all the constants in Flutter?
Static
Dart
Flutter
Constants
How to get a Static property with Reflection
.Net
Reflection
Static
In laymans terms, what does 'static' mean in Java?
Java
Static
Reference
Using Server.MapPath() inside a static field in ASP.NET MVC
C#
asp.net Mvc
Static
lucene.net
server.mappath
How to initialize a private static const map in C++?
C++
Static
Map
Initialization
Constants
static allocation in java - heap, stack and permanent generation
Java
Static
Memory Management
Permanent Generation
Why does PHP 5.2+ disallow abstract static class methods?
Php
Oop
Static
Abstract
Modify/view static variables while debugging in Eclipse
Eclipse
Debugging
Variables
Static
`static` keyword inside function?
Php
Function
Static
Keyword
@Autowired and static method
Java
Spring
Static
Autowired
Calling static generic methods
Java
Generics
Static
Type Inference
Static fields on a null reference in Java
Java
Static
Getting value of public static final field/property of a class in Java via reflection
Java
Reflection
Static
Final
Defining static const integer members in class definition
C++
Static
Declaration
Definition
When does static class initialization happen?
Java
Static
Initialization
What is the use of static variable in C#? When to use it? Why can't I declare the static variable inside method?
C#
Static
Static Variables
php static function
Php
Class
Static
Member
Setting up two different static directories in node.js Express framework
Static
node.js
Express
Duostack
How does the static modifier affect this code?
Java
Static
C# : What if a static method is called from multiple threads?
C#
Multithreading
Static
Should C# methods that *can* be static be static?
C#
Static
Methods
Android static object lifecycle
Android
Static
Android Lifecycle
Static Members
Static class initializer in PHP
Php
Class
Static
Constructor
Initializer
Are static fields inherited?
C++
Inheritance
Static
Why are all fields in an interface implicitly static and final?
Java
Interface
Static
Final
Language Implementation
Static array vs. dynamic array in C++
C++
Dynamic
Arrays
Static
Allocation
Undefined reference to static variable c++
C++
Static
Static function variables in Swift
Function
Static
Swift
C++ - Why static member function can't be created with 'const' qualifier
C++
Static
Language Lawyer
Const Method
Are static fields open for garbage collection?
Java
Static
Garbage Collection
Static Members
Static files in Flask - robot.txt, sitemap.xml (mod_wsgi)
Python
Flask
Static
Mod Wsgi
robots.txt
Difference between static and relative positioning
Css
Static
Positioning
Css Position
Initialize static variables in C++ class?
C++
Static
Initialization
When are static variables initialized?
Java
Static
Initialization
When is a static constructor called in C#?
C#
Static
Django Static files 404
Django
Static
Http Status-Code-404
Can I override and overload static methods in Java?
Java
Static
Overloading
Overriding
Are static members of a generic class tied to the specific instance?
C#
.Net
Generics
Static
What is the gain from declaring a method as static
Java
Optimization
Coding Style
Static
Difference between Static methods and Instance methods
Java
Static
Static Methods
Non Static
When to use static keyword before global variables?
C
Static
Keyword
Deprecation of the static keyword... no more?
C++
Static
C++11
Standards
Are static variables shared between threads?
Java
Multithreading
Concurrency
Static
Memory Visibility
What is the difference between static const and const?
C
Static
Constants
How to initialize a static const member in C++?
C++
Static
Private Constructor in Python
Python
Static
Constructor
Private
Variable declarations in header files - static or not?
C++
C
Static
How to deal with symbol collisions between statically linked libraries?
C
Static
Libraries
Collision
Symbols
Static initialisation block in Kotlin
Java
Static
Kotlin
Initializer
How can I create "static" method for enum in Kotlin?
Enums
Static
Kotlin
Creating a static class with no instances
Python
Class
Object
Static
Variably modified array at file scope
C
Objective C
Arrays
Static
Constants
Static block in Java not executed
Java
Static
Access Modifiers
Initialize a static final field in the constructor
Java
Static
Constructor
Final
Why doesn't C# support local static variables like C does?
C#
Static
Why can a const member function modify a static data member?
C++
Function
C++11
Static
Constants
What's the correct alternative to static method inheritance?
C#
.Net
Inheritance
Static
Static vs global
C
Static
Global
Large difference in speed of equivalent static and non static methods
Java
Performance
Object
Methods
Static
What is the difference between a static and const variable?
C++
C
Static
Constants
Should one never use static inline function?
C++
Static
Inline
Difference between static modifier and static block
Java
Static
Modifier
Lifetime of ASP.NET Static Variable
C#
asp.net
Static
What difference between static and non static viewholder in RecyclerView Adapter?
Android
Static
Android Recyclerview
Android Viewholder
Why isn't calling a static method by way of an instance an error for the Java compiler?
Java
Static
Methods
How do I mock a static method that returns void with PowerMock?
Static
Mocking
Mockito
Void
Powermock
Member function with static linkage
C++
Static
Qt static linking and deployment
Windows
Qt
Deployment
Static
Is it bad practice for a class to have only static fields and methods?
Oop
Class
Static
Static code blocks
C#
.Net
Static
Does there exist a static_warning?
C++
Static
Compiler Warnings
What is the use of "static" keyword if "let" keyword used to define constants/immutables in swift?
Swift
Static
Constants
Play! framework uses a <lot> of statics
Java
Static
Playframework
Playframework 1.x
When do I use static variables/functions in php?
Php
Oop
Static
"Non-static method cannot be referenced from a static context" error
Java
Compiler Errors
Static
How to initialize a static array?
Java
Arrays
Static
Playing Cards
Build a Call graph in python including modules and functions?
Python
Function
Static
Module
Call Graph
Why can't we access static content via uninitialized local variable?
Java
Static
Initialization
Local Variables
Jls
Using a class's static member on a derived type?
C#
Static
Resharper
Why are global and static variables initialized to their default values?
C++
C
Static
Global Variables
ValueError: Missing staticfiles manifest entry for 'favicon.ico'
Python
Django
Static
Django Views
Django Staticfiles
Static constructor equivalent in Objective-C?
Objective C
Static
Initialization
Initializer
What's the meaning of static variables in an implementation of an interface?
Objective C
Variables
Static
Static Variables
Static variables in C++
C++
Static
Scope
Django : Is it impossible to static tag into block tag?
Django
Static
Block
Why should the static field be accessed in a static way?
Java
Static
Utility class in Spring application - should I use static methods or not?
Java
Spring
Methods
Static
Why does .class not invoke the static block in a Class?
Java
Class
Static
Initialization
When are static C++ class members initialized?
C++
Static
Initialization
troubles declaring static enum, C#
C#
Static
Enums
Implicitly lazy static members in Swift
Swift
Static
Swift2
Lazy Loading
Static Members
Static variables initialisation order
C++
Visual Studio
Gcc
Static
Linker
Are static variables in a base class shared by all derived classes?
C++
Inheritance
Static
C/C++ global vs static global
C++
C
Static
Global Variables
Creating an object in a static way
Java
Static
When would I want to make my private class static?
Java
Class
Static
Private
StaticExtension value cannot be resolved
Wpf
Xaml
Data Binding
Static
Xamlparseexception
Instantiate nested static class using Class.forName
Java
Static
Are static methods thread safe
C#
asp.net
Static
Why won't extern link to a static variable?
C
Static
Extern
C++ singleton vs. global static object
C++
Static
Singleton
Global Variables
How can I get the value of a session variable inside a static method?
C#
asp.net
Methods
Static
Session Variables
static variable null when returning to the app
Android
Android Activity
Static
Null
How to specify const array in global scope in Rust?
Arrays
Static
Literals
Rust
How do static variables in lambda function objects work?
C++
C++11
Static
Lambda
Difference between static and dynamic programming languages
Dynamic
Static
Programming Languages
Type Systems
When to use static constant and variable in Swift?
Ios
Swift
Variables
Static
Constants
What's the difference between const array and static const array in C/C++
C++
C
Arrays
Static
Constants
Template static variable
C++
Templates
Static
Overriding a static method in python
Python
Static
Overriding
Get list of static libraries used in an executable
C++
C
Unix
Static
Linker
Are function static variables thread-safe in GCC?
C++
Gcc
Static
Initialization
Thread Safety
Non-static method ..... should not be called statically
Php
Static
Non Static
How do I create a static local variable in Java?
Java
Scope
Static
Python class static methods
Python
Static
Destruction order of static objects in C++
C++
Static
Destruction
Static Method of a Static Class vs. Static Method of a Non-Static Class ( C# )
C#
Oop
Static
Methods
Calling non-static method with double-colon(::)
Php
Static
What does `static` mean in c#?
C#
Static
'public static final' or 'private static final' with getter?
Java
Static
Private
Public
Final
C/C++: Static function in header file, what does it mean?
C++
C
Function
Static
Can I mix static and shared-object libraries when linking?
C
Gcc
Static
Linker
Static fields in a base class and derived classes
C#
Static
Scope
static vs non-static variables in namespace
C++
Static
Namespaces
variably modified array at file scope in C
C
Arrays
Static
Necessity of static block in Java
Java
Static
Initialization
Java best practice: Class with only static methods
Java
Static
Singleton
Nio
What is the c# equivalent of public final static in java
C#
Java
Static
Final
Public
Getting static property from a class with dynamic class name in PHP
Php
Oop
Dynamic
Static
Properties
Why can't a top level class be static in Java?
Java
Class
Static
Is returning a pointer to a static local variable safe?
C
Static
ThreadStatic Modified with Static C#
C#
Static
Thread Static
PowerMock testing - set static field of class
Junit
Static
Mocking
Powermock
Why do two programs have forward referencing errors while the third does not?
Java
Static
Instance
Forward
Why static fields are not initialized in time?
Java
Static
Null
Nullpointerexception
Java: Static transient fields
Java
Serialization
Static
Field
Transient
What makes a static variable initialize only once?
C++
Variables
Static
Static Variables
Why isn't a qualified static final variable allowed in a static initialization block?
Java
Static
Final
Static Initialization
Qualified Name
How to declare a static attribute in Python?
Python
Class
Static
Attributes
Why can't you call abstract functions from abstract classes in PHP?
Php
Oop
Static
Methods
Abstract
Why doesn't Scala have static members inside a class?
Class
Scala
Static
Language Design
Static Members
Can we use static method in an abstract class?
Java
Interface
Static
Abstract
How to create a static array of strings?
Arrays
String
Static
Rust
Is "public static final" redundant for a constant in a Java interface?
Java
Interface
Static
Final
Jls
C# static member "inheritance" - why does this exist at all?
C#
Inheritance
Static
Language Design
How come invoking a (static) method on a null reference doesn't throw NullPointerException?
Java
Static
Null
Nullpointerexception
Java: static field in abstract class
Java
Static
Abstract
Is it safe to save the app context to a static variable in Android?
Android
Process
Static
Android Context