![]() |
| Home | Tech FAQ | Interview Questions | Placement Papers | Tech Articles | Learn | Freelance Projects | Online Testing | Geeks Talk | Job Postings | Knowledge Base | Site Search | Add/Ask Question |
![]() 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 : padmareddy Wrote: can we acces static vairable with object we can access static variable by using objects also for example see the below program u will ... Latest Answer : Initially it didnt as java uses "extends" word for inheritance but it didnt allow us to extend more then one class.So the concept of "interface" came which is like abstrct class but with strictness that methods will only be declared at that place & have ... Tags : Inheritance Latest Answer : multiple inheritance is not allowed in java because to avoid naming collisions. ex:- if a class inherit two classes and let the two parent(base) classes have a method with same name. then child class will inherit only one of them , a naming collision ... Tags : Inheritance Latest Answer : Please Check with this example programpublic class StaticExam { static int a=10;public static void main(String args[]){System.out.println(" Welcome to static variable testing");StaticExam s= new StaticExam();s.display();}public void display(){System.out.println(" ... Latest Answer : Yes ... Latest Answer : B'coz there is a possibility of ambiguity while calling the the function if same function is exists in both the super classes. ... Tags : Inheritance Suppose If we have variable ' I ' in run method, If I can create one or More thread each thread will occupy a separate copy or same variable will be shared
Sponsored Links
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||