![]() Related Questions As of now ,what i know abt cloning is that we can make a field to field copy of an object.ie when we 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 : No it won't work.Only one main methods is allowed ... Latest Answer : Abstract class can have instance variable, static variable, constructor, abstract methods, concrete methods, instance blocks and static blocks.Subclass has to extend abstract class using extend keyword. ... Tags : Abstract Latest Answer : In singleton class ,only one time the instance wil create.Example....public class Sin{ static Sin s=null; public static void main(String a[]) { create(); create(); ... Latest Answer : Below are three signatures:public final void notify()public final void notifyAll()public final void wait(long timeout) ... Latest Answer : polymorphism is the characteristic of assigning more than one meanings or different meanings to a single symbol or operator in different contexts. ... Latest Answer : Java is Object Orieted Programming Language developed by Sun Microsystem (U.S.A).It Is Platform Independent Language.It Is Simple ,Secure,Robust, Compiled & InterPreted Language. ... Latest Answer : class is a blue print for an object which defines the functionality of an object. class also called the template for an object. ... Latest Answer : method represents the behaviour of an object ... Latest Answer : java program contains 2 elements code and dat. so the mechanism that binds data and code together is Encapsulation. which is also called information hiding or protecting. Encapsulation is used to hide the implementation behind interface(API). ...
Sponsored Links
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||