Tag

null-check

0 views collected around this technical thread.

php中文网 Courses
php中文网 Courses
Apr 22, 2025 · Backend Development

Using PHP’s is_null Function to Check for Null Variables

This article explains how the PHP is_null function can be used to determine whether a variable holds a null value, demonstrates its behavior with example code, and discusses the practical implications for conditional logic in backend development.

BackendPHPis_null
0 likes · 4 min read
Using PHP’s is_null Function to Check for Null Variables
Java Captain
Java Captain
Apr 17, 2025 · Backend Development

Java Development Tips: Enums, RESTful API Standards, Bean Conversion, Stream Operations, and Null/Assertion Handling

This article shares practical Java backend development techniques, covering safe enum usage, RESTful API design guidelines, generic bean conversion via JSON, effective Stream API patterns, and comprehensive null‑checking and assertion strategies to improve code reliability and maintainability.

AssertionsBackendJava
0 likes · 13 min read
Java Development Tips: Enums, RESTful API Standards, Bean Conversion, Stream Operations, and Null/Assertion Handling
macrozheng
macrozheng
Jan 20, 2025 · Fundamentals

Master Elegant Null Checks in Java with Utility Classes

This article explains how to replace repetitive !=null checks in Java by identifying data types and using the appropriate Spring/Apache utility classes such as StringUtils, ObjectUtils, Collections, and CollectionUtils, providing code examples and best‑practice guidelines.

JavaObjectUtilsStringUtils
0 likes · 8 min read
Master Elegant Null Checks in Java with Utility Classes
Selected Java Interview Questions
Selected Java Interview Questions
Dec 22, 2024 · Backend Development

Choosing Between Optional.ofNullable and Traditional Null Checks in Java

The article compares using Optional.ofNullable with map() versus a traditional null‑check ternary operator for retrieving a Hyperlink's link property, evaluates their readability, performance, and suitability, and extends the discussion to native versus utility‑based collection‑empty checks in Java.

CollectionsJavaOptional
0 likes · 6 min read
Choosing Between Optional.ofNullable and Traditional Null Checks in Java
Selected Java Interview Questions
Selected Java Interview Questions
Dec 17, 2024 · Backend Development

Efficient and Elegant Null Checks in Java Using Utility Classes

This article explains how to perform efficient and elegant null checks in Java by first identifying the data type, then selecting the appropriate utility class such as StringUtils, ObjectUtils, Collections or CollectionUtils, and finally applying the class’s isEmpty method with code examples for strings, arrays, lists, maps, and more.

JavaObjectUtilsStringUtils
0 likes · 7 min read
Efficient and Elegant Null Checks in Java Using Utility Classes
Architecture Digest
Architecture Digest
Dec 9, 2024 · Fundamentals

Efficient Null Checks in Java Using Utility Classes

This article explains how to efficiently perform null checks in Java by selecting appropriate utility classes such as StringUtils, ObjectUtils, Collections, and CollectionUtils for different data types, and also includes a brief notice about a free programmer book giveaway.

CollectionsJavaObjectUtils
0 likes · 9 min read
Efficient Null Checks in Java Using Utility Classes
Top Architect
Top Architect
Jun 20, 2024 · Backend Development

When and How to Use Null Checks in Java: Best Practices and Alternatives

This article discusses the proper use of null‑checking in Java, distinguishes between valid and invalid null returns, proposes alternatives such as returning empty collections, using assertions or throwing exceptions, and demonstrates the Null Object pattern with concrete code examples while also noting related community resources.

JavaNull Objectbackend development
0 likes · 9 min read
When and How to Use Null Checks in Java: Best Practices and Alternatives
php中文网 Courses
php中文网 Courses
Feb 21, 2024 · Backend Development

Using PHP’s is_null Function to Check for Null Variables

This article explains how the PHP built‑in function is_null can be used to determine whether a variable holds a null value, demonstrates its behavior with example code, and describes the resulting true or false outcomes for different variable types.

PHPVariablesbackend development
0 likes · 4 min read
Using PHP’s is_null Function to Check for Null Variables
Architect's Guide
Architect's Guide
Feb 20, 2024 · Backend Development

Null Checks and Optional Usage in Java

This article explains common null‑checking techniques for objects, Lists, and Strings in Java, introduces the Optional class with its creation methods and typical usage scenarios, and compares various utility libraries to help avoid NullPointerException in real‑world projects.

JavaOptionalbest practices
0 likes · 6 min read
Null Checks and Optional Usage in Java
Selected Java Interview Questions
Selected Java Interview Questions
Nov 14, 2023 · Backend Development

Java Null Checks, List and String Validation, and Optional Usage Guide

This article explains common Java null‑checking techniques for objects, Lists, and Strings, compares different utility methods, and introduces the Optional class with its creation patterns and typical usage scenarios to help avoid NullPointerException in backend development.

JavaOptionalbest practices
0 likes · 7 min read
Java Null Checks, List and String Validation, and Optional Usage Guide
Java Architect Essentials
Java Architect Essentials
Oct 8, 2021 · Fundamentals

How to Avoid Excessive Null Checks in Java: Best Practices and the Null Object Pattern

This article explains why excessive null‑checking in Java code is problematic, distinguishes when null is a valid response versus an error, and offers practical techniques such as using assertions, throwing exceptions, returning empty collections, and applying the Null Object pattern to write cleaner, safer code.

AssertionsJavaNull Object pattern
0 likes · 7 min read
How to Avoid Excessive Null Checks in Java: Best Practices and the Null Object Pattern
Top Architect
Top Architect
Sep 15, 2021 · Fundamentals

Avoiding Null Pointer Checks: When to Use Null, Assertions, and the Null Object Pattern

The article explains why excessive null‑checking in Java code is problematic, distinguishes between null as a valid response and null as an error, and offers practical techniques such as returning empty collections, using assertions, throwing exceptions, and applying the Null Object pattern to write cleaner, safer code.

BackendJavabest practices
0 likes · 7 min read
Avoiding Null Pointer Checks: When to Use Null, Assertions, and the Null Object Pattern
Top Architect
Top Architect
Apr 12, 2021 · Backend Development

Avoiding Null Checks in Java: When to Use Assertions, Exceptions, and the Null Object Pattern

The article explains why excessive null‑checking in Java code is problematic, distinguishes between null as a valid response and as an error, and offers practical techniques such as assertions, throwing exceptions, returning empty collections, and applying the Null Object pattern to write cleaner, safer backend code.

AssertionsException HandlingJava
0 likes · 7 min read
Avoiding Null Checks in Java: When to Use Assertions, Exceptions, and the Null Object Pattern