Tag

Object Comparison

0 views collected around this technical thread.

FunTester
FunTester
Jan 7, 2025 · Backend Development

Using Apache Commons Lang 3 for Efficient Object Comparison in Java

This article introduces Apache Commons Lang 3, explains its key utilities, and demonstrates how to integrate the library with Maven and employ DiffBuilder and ReflectionDiffBuilder to compare Java objects, generate detailed difference reports, and simplify debugging and testing processes.

Apache Commons LangDiffBuilderJava
0 likes · 9 min read
Using Apache Commons Lang 3 for Efficient Object Comparison in Java
Amap Tech
Amap Tech
May 8, 2020 · Backend Development

Common Java Coding Pitfalls and How to Avoid Them

These seven Java coding pitfalls—from improper object comparison and ternary‑operator null handling to generic type mismatches, BeanUtils copying errors, missing equals/hashCode, and CGLIB proxy issues—are explained with bytecode insights and concrete avoidance strategies such as consistent types, proper generics, correct overrides, and avoiding final members.

Backend DevelopmentCGLIBJava
0 likes · 26 min read
Common Java Coding Pitfalls and How to Avoid Them
Full-Stack Internet Architecture
Full-Stack Internet Architecture
Oct 16, 2019 · Fundamentals

Understanding Java String Pool, intern() Method, and Comparison Techniques

This article explains how Java's String class encapsulates character arrays, the role of the string pool, the effects of the new operator, the intern() method, and the proper use of == versus equals() for reliable string comparison and memory optimization.

JavaMemory ManagementObject Comparison
0 likes · 8 min read
Understanding Java String Pool, intern() Method, and Comparison Techniques
Java Captain
Java Captain
Dec 12, 2017 · Fundamentals

Understanding Integer and String Comparison in Java

This article explains Java's Integer and String comparison quirks, detailing how autoboxing caches values between -128 and 127, why '==' behaves differently for objects versus primitives, and demonstrates these concepts with clear code examples and explanations.

CachingIntegerJava
0 likes · 7 min read
Understanding Integer and String Comparison in Java