![]() 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) ...
What are the restrictions of an applet & how to make the applet access the local machines resources. What are the restrictions of an applet & how to make the applet access the local machines resources. Latest Answer : We need not call the finalize() method directly. The method is called automatically by the garbage collector when it determines no more references to the object exist. But when we need to clean-up non-Java resources ie closing a file, we need ... Latest Answer : Finally method is executed whether the exception is raised or not and normally used to close the resource that are opened in the before. ... Latest Answer : access modifiers are applicable to class,variable and methods, some of access modifiers are final,static,synchronized,volatile,native,abstract and transient. ... Latest Answer : Its a common mistake to assume that overloading is a kind of polymorphism in OOPS..But its actually not..However the definition is the same.. an entity existing in different forms is called polymorphism..in Java, polymorphism is achieved with super class ... Tags : OOPS
Sponsored Links
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||