![]() 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 : We need to compare two strings we have a method equals(). Using this metods we can compare to strings like Ex:-String s1=”ram”;String s2=”ram”; s1.equals(s2) ... 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? Read Answers (1) | Asked by : sankari 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? View Question | Asked by : Suresh Kumar 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 Read Answers (3) | Asked by : nitinsikdar 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. View Question | Asked by : Manikant What is the difference between equals() method and == operator.when we use 2 same strings for finding of whether both strings r equal or not by using these two,it will give same answers.i.e true and true.so what is the main defference between equals() and ==. Read Answers (2) | Asked by : haritha
Sponsored Links
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||