Tag

static method

0 views collected around this technical thread.

Test Development Learning Exchange
Test Development Learning Exchange
Sep 15, 2024 · Fundamentals

Understanding Instance, Class, and Static Methods in Python

This article explains Python's instance, class, and static methods, detailing their definitions, differences, and typical use cases, and provides clear code examples—including a simple MyClass demonstration and a comprehensive Date class illustration—to help developers understand and apply each method type effectively.

Pythonclass methodinstance method
0 likes · 6 min read
Understanding Instance, Class, and Static Methods in Python
FunTester
FunTester
Aug 31, 2022 · Fundamentals

Understanding Java Interfaces: Protocols, Default and Static Methods

This article explains the role of Java interfaces as communication protocols between modules, demonstrates their use with a computer‑assembly analogy, and covers Java 8 features such as default and static methods, method‑conflict resolution, and best practices for interface design.

OOPdefault-methodinterface{}
0 likes · 15 min read
Understanding Java Interfaces: Protocols, Default and Static Methods
Top Architect
Top Architect
Oct 29, 2021 · Backend Development

Three Methods to Obtain Spring Beans in Static Context: @PostConstruct, ApplicationContext, and ApplicationContextAware

This article explains three practical ways to retrieve Spring beans from static methods—using @PostConstruct annotation, a static ApplicationContext defined in the main class, and a manually injected ApplicationContext via ApplicationContextAware—complete with code examples and usage notes.

ApplicationContextBean RetrievalPostConstruct
0 likes · 5 min read
Three Methods to Obtain Spring Beans in Static Context: @PostConstruct, ApplicationContext, and ApplicationContextAware
FunTester
FunTester
Apr 26, 2021 · Backend Development

Resolving IllegalAccessException When Reflectively Invoking a Static Method in a Java Test Framework

The article details a Java reflection issue where invoking a static test method via ExecuteSource caused IllegalAccessException, explains the root cause related to method visibility, and shows how adding the public modifier fixes the problem, enabling successful distributed performance testing.

Performance Testingillegalaccessexceptionjava
0 likes · 5 min read
Resolving IllegalAccessException When Reflectively Invoking a Static Method in a Java Test Framework
Python Programming Learning Circle
Python Programming Learning Circle
Apr 25, 2021 · Fundamentals

Understanding Static, Class, and Instance Methods in Python

This article explains Python's static, class, and instance methods, detailing their definitions, usage with @staticmethod and @classmethod decorators, code examples, expected outputs, and common pitfalls such as TypeError when calling non‑static methods via instances.

OOPPythonclass method
0 likes · 5 min read
Understanding Static, Class, and Instance Methods in Python
Qunar Tech Salon
Qunar Tech Salon
Mar 21, 2015 · Fundamentals

Understanding Null in Java: Causes, Behaviors, and Best Practices

This article explains the role of the null keyword in Java, its default value for reference types, common pitfalls such as NullPointerException caused by autoboxing, improper primitive assignments, instanceof checks, static method calls on null references, and safe handling techniques to write null‑safe code.

Best PracticesNULLautoboxing
0 likes · 12 min read
Understanding Null in Java: Causes, Behaviors, and Best Practices