Tagged articles
8 articles
Page 1 of 1
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.

Class MethodOOPPython
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.

InterfaceOOPdefault-method
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.

Bean RetrievalPostConstructSpring Boot
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.

Reflectionillegalaccessexceptionperformance-testing
0 likes · 5 min read
Resolving IllegalAccessException When Reflectively Invoking a Static Method in a Java Test Framework
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.

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