Tag

Cloneable

0 views collected around this technical thread.

Sanyou's Java Diary
Sanyou's Java Diary
Feb 7, 2022 · Backend Development

Understanding Shallow vs Deep Copy in Java: A Practical Cloneable Guide

This article explains the differences between shallow and deep copying in Java, illustrates how the Cloneable interface and the clone() method work, provides complete code examples for both copy types, and clarifies the concept of reference copying with diagrams and test outputs.

CloneableDeepCopyJava
0 likes · 4 min read
Understanding Shallow vs Deep Copy in Java: A Practical Cloneable Guide
Full-Stack Internet Architecture
Full-Stack Internet Architecture
Feb 10, 2020 · Fundamentals

Understanding the Prototype Design Pattern with Java Examples

This article explains the Prototype creational design pattern, its definition, key concepts, typical usage scenarios, UML illustrations, and provides a complete Java implementation with code examples, output analysis, and a discussion of its application in Spring's prototype‑scoped beans.

CloneableJavaPrototype Pattern
0 likes · 11 min read
Understanding the Prototype Design Pattern with Java Examples
Java Captain
Java Captain
Mar 31, 2018 · Fundamentals

Understanding Object Cloning in Java: Shallow vs Deep Copy

This article explains Java object cloning, detailing why cloning is needed, how to implement shallow and deep copies using the Cloneable interface and serialization, and provides comprehensive code examples illustrating the differences and pitfalls of reference copying.

CloneableCloningJava
0 likes · 15 min read
Understanding Object Cloning in Java: Shallow vs Deep Copy