As of now ,what i know abt cloning is that we can make a field to field copy of an object.ie when we clone an object,its state as well as a its behaviour is copied to the cloned object.My question is what is the neccesity of it? cant we create another object of the same class? so how does its different from cloned object (that is creating another object of that class rather than being cloned).is there any security issues coupled with this cloned object? And What is the Concrete purpose of
Latest Answer : Methods cannot be overloaded only on the basis of return type atleast one argument should be different, otherwise compiler will give the message "The function is already defined in the class". ...
Latest Answer : 1)final 2)static 3)transient 4)synchronized 5)abstract 6)const ...
Latest Answer : Different type of modifiers 1. public 2. private 3. Protected 4. defaultThese are also known as qualifier ...
Latest Answer : There are 8 different primitive datatypes in Java:- 1)byte 2)short 3)int 4)float 5)double 6)long 7)char 8)boolean ...
Latest Answer : vector can be called as dynamic array its size cn shrink and grow dynamically ...
Latest Answer : stream is a logical entity and an abstraction that either produces or consumes information. input streams, output streams ...
Latest Answer : An object that describes a change of state in a source component [ Elements of the GUI] is called event.
When we interact with these Source Components, their state changes then various events to occur.
Example:
Pressing a mouse button, moving a mouse ...