Tagged articles
static
28 articles · Page 1 of 1
The article explains the four most frequently tested static keyword pitfalls in C/C++ interviews—local variable initialization, thread‑unsafe functions, file‑level global scope, and class member sharing—detailing their underlying lifetime and scope rules, common misconceptions, and a concise answer template to prevent losing an offer.
C++Interviewclass member
0 likes · 11 min read

This tutorial walks through Java member methods, covering return statement syntax, proper use of getters and setters, the static modifier for class members, and the final keyword for classes, variables, and methods, with concrete code examples and explanations.
FinalJavafundamentals
0 likes · 12 min read

This article provides a comprehensive guide to the const and static modifiers in C/C++, covering their distinct purposes, usage with variables, pointers, functions, and class members, and answering common interview questions with clear explanations and practical code examples.
C++Interviewconst
0 likes · 17 min read

This article explains how to create a user‑defined read() function in C that coexists with the standard library read() by using the static keyword and separate translation units, providing code examples, compilation steps, and execution results.
C++Linuxfunction-overriding
0 likes · 6 min read

This article explains the versatile static keyword in C++ by covering six practical patterns—including local static variables, file‑scope static globals, static class members, static member functions, lazy‑initialized singletons, and compile‑time constants—complete with clear code examples and usage tips.
C++Tutorialconstants
0 likes · 9 min read

This article explains the many roles of the C++ static keyword—how it affects variables, functions and class members—then dives deep into static object lifetimes, destructor rules, destruction order across translation units, common pitfalls such as resource‑dependency bugs, memory leaks and multithreading issues, and finally offers practical solutions and interview‑style questions.
C++destructorinitialization-order
0 likes · 28 min read

This article explores the purpose and implementation of UIKIT_EXTERN and related macros in iOS, explaining how they manage global constants, control symbol visibility across dynamic libraries, and provide practical examples of extern, static, and const usage for compilation optimization and conflict resolution.
MacrosUIKIT_EXTERNconst
0 likes · 12 min read

This article explains PHP static members, how self::, parent::, and static:: differ in inheritance contexts, when to use static members, and provides clear code examples illustrating their distinct behaviors for method and property access.
InheritanceOOPparent
0 likes · 7 min read

This guide explains core C programming concepts—including bitwise operators, macro definitions, conditional compilation directives, extern declarations, typedef aliases, struct usage, and the static keyword—providing clear examples and code snippets to help developers write more efficient and maintainable code.
C++Conditional CompilationMacros
0 likes · 10 min read

This guide explains the differences between PHP's parent::, self::, and static:: keywords, shows how they behave in inheritance hierarchies with concrete code examples, and offers practical advice on when to choose each form to avoid common pitfalls.
InheritanceOOPPHP
0 likes · 10 min read

This guide explains the purposes and effects of the C/C++ static and volatile keywords, compares the sizeof operator with strlen, describes reliable methods for comparing floating‑point numbers, outlines how floating‑point operations affect STM32 interrupt performance, and provides a concise overview of the I²C protocol and address configuration on STM32 devices.
C++I2CSTM32
0 likes · 9 min read

This article explains what serialization and deserialization are, why Java classes must implement the Serializable interface, the role of serialVersionUID in version compatibility, and demonstrates with code how transient and static fields behave during object serialization and deserialization.
JavaObjectIOSerialization
0 likes · 9 min read

This article explains PHP's static keyword, covering static properties and methods, memory management, common use cases such as utility functions and the singleton pattern, and important considerations for visibility and inheritance, accompanied by clear code examples.
Backenddesign patternssingleton
0 likes · 8 min read

This article explains C variables and constants, their three components, key differences, how to define symbolic constants with #define, use the const keyword, understand various scopes, the static storage class, and the distinction between declarations and definitions, all illustrated with code examples.
C++constconstants
0 likes · 12 min read

This article explains Java object serialization and deserialization, why implementing Serializable and defining a serialVersionUID are necessary for persistence and network transfer, and demonstrates the impact of transient and static fields with complete code examples.
Serializationdeserializationexample
0 likes · 10 min read

This article explains the special nature of Java's main method, its modifiers, how it can be overloaded, invoked from other methods, and even inherited by subclasses, illustrating each point with clear code examples.
InheritanceMethod Overloadingmain method
0 likes · 6 min read

This article explains the special nature of Java's main method, detailing its required signature, the role of each modifier, and demonstrates that the main method can be overloaded, invoked by other methods, and even inherited by subclasses, with practical code examples.
InheritanceJavamain method
0 likes · 6 min read

This article explains the purpose, syntax, and underlying principles of UIKIT_EXTERN and related macros such as extern, static, and const in iOS, demonstrates how __attribute__ and visibility modifiers affect symbol linkage, and outlines practical scenarios and extensions for safer, more efficient code across dynamic libraries.
MacrosUIKIT_EXTERNconst
0 likes · 11 min read

This article explains PHP's limited inheritance concept, detailing how subclasses inherit public and protected members but not private ones, and covers protected inheritance, static members, and the inheritance of constructors and destructors, illustrated with clear code examples.
InheritanceOOPProtected
0 likes · 5 min read

This article explains the purpose and required signature of Java's main method, detailing why it must be public, static, return void, and accept a String[] argument, and describes how the JVM launches and invokes this entry point.
JVMJavaPublic
0 likes · 6 min read
![Understanding the Java main Method: Why It Is public static void and Takes String[] Args](https://wsrv.nl/?url=http%3A%2F%2Fmmbiz.qpic.cn%2Fmmbiz_jpg%2FC1uDMDqjn1icyHNkquibgPjwqJV9kygzcXcsYX8vL5Y11Y2ZQKjwRwgCb2gR9wKnswEhGPj9NOMZXtIWRjAemUPw%2F0%3Fwx_fmt%3Djpeg)
This article demystifies Java’s static concept by contrasting static and dynamic members, explaining class‑object relationships, showing concrete examples, and outlining when to declare static variables or methods, their characteristics, cautions, and advantages.
fundamentalsmethodsobject-oriented
0 likes · 7 min read

This article explains the Facade feature introduced in ThinkPHP 5.1, demonstrates how to use it for static‑style method calls, shows step‑by‑step code examples, discusses the underlying __callStatic and createFacade mechanisms, and provides best‑practice recommendations for managing multiple facades in complex projects.
Design PatternFacadedependency-injection
0 likes · 11 min read

This article explains Java serialization and deserialization, the role of the Serializable interface and serialVersionUID, demonstrates how to implement and test them with code examples, and discusses related features such as transient and static fields, providing practical insights for Java developers.
JavaSerializationdeserialization
0 likes · 11 min read

This article dives deep into Java's serialization mechanism, explaining the theory behind the Serializable interface, demonstrating practical examples with code, exploring the impact of static and transient fields, comparing Serializable with Externalizable, and clarifying the role of serialVersionUID in version compatibility.
ExternalizableJavaObjectInputStream
0 likes · 14 min read

This article explores Java's serialization mechanism in depth, covering its history, the Serializable and Externalizable interfaces, practical code examples, the impact of static and transient fields, serialVersionUID nuances, and common pitfalls to help developers write robust, version‑compatible Java code.
ExternalizableJavaSerialization
0 likes · 14 min read

This article explains Java's static data members and methods, demonstrates how they are declared and accessed through a Human class example, shows how object constructors can modify static fields, and clarifies the purpose and usage of the final keyword in Java programming.
Class FieldsFinalJava
0 likes · 7 min read


21CTODec 1, 2017 · Backend Development
This article explains how to fine‑tune PHP‑FPM by choosing the optimal Process Manager mode—static, dynamic, or ondemand—combined with CPU governor settings to achieve higher throughput, lower latency, and stable CPU/memory usage on web servers.
PHP-FPMcpu governorperformance
0 likes · 9 min read


ITPUBJun 1, 2016 · Fundamentals
This article systematically outlines the six-step process for defining complete Java class methods, covering access modifiers, static and abstract keywords, return types, naming conventions, parameter lists, method bodies, as well as method overloading, overriding, and various invocation techniques.
abstractmethodsoverloading
0 likes · 13 min read
