How destructors are defined in java?
Answer / Kunwar Akram Ali
Destructors (like C++ counterparts) are not supported in Java. Instead, the concept of Finalization is used. An object's finalize() method is called by the garbage collector right before the object is destroyed. However, you cannot define destructors as per Java language rules.
| Is This Answer Correct ? | 0 Yes | 0 No |
finalize() method?
Add a value x to array from index l to r where 0 <= l <= r <= n-1
What is an interoperable application in java ?
The following program is Overloading or Overriding? public class PolymorphismEx { public int sampleMethod(int a) { return a; } public String sampleMethod(int a) { return "Is it Overloading or Overriding???"; } }
4 Answers Ness Technologies, TCS,
What is the synonym of procedure?
What is an empty class? What functionality does it offer in Java?
1 Answers Deloitte, EXL, JPMorgan Chase,
Define a package.
How many bits is a string in java?
Difference between Application and Applet ?
worst case complexities of Quick sort and Merge sort.
Which is better arraylist or vector?
Why volatile is used in java?