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 : exception object can be caught only once after it was caught i think it will be eligible for garbage collection. Not that it will be immediately destroyed but it will be destroyed soon if we are not using that object to detect what kind of exception it ...
The finalize() method will always be invoked once before the object is garbagecollected. However, the finalize() method might never be invoked for an object in itslifetime, because there is no guarantee that it will get garbage collected.Then what is the use of the finalize() method? Why should we use it?
1.What is JVM & JRE,& what it will do during Compile,Runtime of Javaprogramme?2.what is object?why it is necessary?3.what is the diffirence between JVM & JRE?4In Java,what internally going on during Runtime?
What is the diffrence between Object & Instance?I know that the Object is the instance of class,but why & when we call an Object as an Instance ?
I know that the Object is the instance of a class
If two overloaded methods are-test(Object xyz) and test(Customer cust)[Assume Customer is a class with member name of type String].Now if we call test(null), which method will be called? why?
test(Customer cust) will be called.
Can give answer to the folloing questionQuestion 2You are in charge of implementing a Grand Prix Car Racing Results system for a sports magazine, to be used for entering and processing data concerning each Formula 1 Grand Prix that has been run in the season.As you know, each driver is part of the team, and has a number. At the end of each race, the driver who arrived first is assigned 9 points, and the following five drivers receive 6,4,3,2 and 1 point each. Drivers who come in after the sixth
Latest Answer : Here is the snap shot of the working solution to the said question..try{System.out.println("class name is "+class_name);Class cls=Class.forName(class_name);Constructor[] ctorlist=cls.getConstructors();/**temporary remove the sysout statement***//** ...