StackOverflow Questions for Tag: cloneable

mike
mike

Reputation: 55

Instance var referring to an object

Score: 0

Views: 55

Answers: 3

Read More
daydreamer
daydreamer

Reputation: 92179

How does Cloneable work in Java and how do I use it?

Score: 115

Views: 94143

Answers: 6

Read More
user4811324
user4811324

Reputation:

How clone() method of object class works?

Score: -1

Views: 79

Answers: 2

Read More
user4811324
user4811324

Reputation:

Delegation of clone() method call in inheritance in java

Score: 1

Views: 515

Answers: 1

Read More
IsteveI
IsteveI

Reputation: 19

Java implementing interface Cloneable on a inheritance structure

Score: 1

Views: 116

Answers: 1

Read More
Denys_newbie
Denys_newbie

Reputation: 1160

How is Objcet.clone() knows which class must be cloned?

Score: 1

Views: 20

Answers: 0

Read More
Jeremy Friesner
Jeremy Friesner

Reputation: 73379

How to implement ICloneable without inviting future object-slicing

Score: 2

Views: 322

Answers: 2

Read More
Evolution1980
Evolution1980

Reputation: 21

cloning an object some of whose properties are objects

Score: 0

Views: 259

Answers: 1

Read More
HopefullyHelpful
HopefullyHelpful

Reputation: 1819

Does the clone method clone overridden methods?

Score: 4

Views: 85

Answers: 2

Read More
Denys_newbie
Denys_newbie

Reputation: 1160

Why I can not use protected method from a sub class?

Score: 1

Views: 46

Answers: 0

Read More
Denys_newbie
Denys_newbie

Reputation: 1160

Why I have an error, but not an exception?

Score: 1

Views: 68

Answers: 1

Read More
Hasindu Dahanayake
Hasindu Dahanayake

Reputation: 1491

Why can't we achieve deep cloning through getters in java why we need prototype design pattern with Cloneable interface?

Score: 1

Views: 35

Answers: 0

Read More
amar kumar
amar kumar

Reputation: 1

Why can't we use clone method by using approch 1(given below) instead of approch 2 and what's need of marker interface? Why jvm handle clone method?

Score: 0

Views: 53

Answers: 0

Read More

ShallowCloning-Original Object doesnt gets affected

Score: 0

Views: 59

Answers: 0

Read More
implosivesilence
implosivesilence

Reputation: 546

How to create Immutable object containing list of another mutable objects in java?

Score: 1

Views: 514

Answers: 0

Read More
Razer
Razer

Reputation: 8211

How do I copy or clone a LinkedList-implemented Queue in Java?

Score: 22

Views: 37654

Answers: 3

Read More
Leandro Nogueira Couto
Leandro Nogueira Couto

Reputation: 177

Prototype Pattern in Java - the clone() method

Score: 12

Views: 14348

Answers: 5

Read More
Nikita Petrenko
Nikita Petrenko

Reputation: 1088

Improving safety of Clone pattern

Score: 2

Views: 101

Answers: 2

Read More
Emil Adz
Emil Adz

Reputation: 41139

What is the point in letting my class implement Cloneable?

Score: 27

Views: 21783

Answers: 3

Read More
eastwater
eastwater

Reputation: 5640

java how to make a field not cloneable

Score: 3

Views: 2573

Answers: 2

Read More
PreviousPage 2Next