Search...
FAQs
Subscribe
Pie
FAQs
Recent topics
Flagged topics
Hot topics
Best topics
Search...
Search within Beginning Java
Search Coderanch
Advance search
Google search
Register / Login
Post Reply
Bookmark Topic
Watch Topic
New Topic
programming forums
Java
Mobile
Certification
Databases
Caching
Books
Engineering
Micro Controllers
OS
Languages
Paradigms
IDEs
Build Tools
Frameworks
Application Servers
Open Source
This Site
Careers
Other
Pie Elite
all forums
this forum made possible by our volunteer staff, including ...
Marshals:
Campbell Ritchie
Jeanne Boyarsky
Ron McLeod
Paul Clapham
Liutauras Vilda
Sheriffs:
paul wheaton
Rob Spoor
Devaka Cooray
Saloon Keepers:
Stephan van Hulst
Tim Holloway
Carey Brown
Frits Walraven
Tim Moores
Bartenders:
Mikalai Zaikin
Forum:
Beginning Java
class.newInstance() Vs object.clone()
kri shan
Ranch Hand
Posts: 1491
posted 14 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
class.newInstance() creates new instance dynamically and object.clone() creates the replica object. What is the difference(both are used for creating instances)?
Maneesh Godbole
Bartender
Posts: 11497
19
I like...
posted 14 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Did you fully read the API docs for Object#clone() ? What would happen if you invoke the clone() on an object?
[
How to ask questions
] [
Donate a pint, save a life!
] [
Onff-turn it on!
]
Did you see how Paul
cut 87% off of his electric heat bill with 82 watts of micro heaters
?
reply
reply
Bookmark Topic
Watch Topic
New Topic
Boost this thread!
Similar Threads
creation of object
how many type or how many kind of way we can create an object in java??
ways of instantiation
Using Class.forName() with constructor arguments
class Class and class literals
More...