How do you declare a destructor in java?



How do you declare a destructor in java?..

Answer / Nihit Kumar

There is no concept of destructors in Java. Instead, the object's memory gets automatically freed when it goes out of scope.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Core Java Interview Questions

Which class cannot be a subclass in java?

1 Answers  


What is the use of arraylist in java?

1 Answers  


What Is Pointer?

4 Answers  


What is another word for methodology?

1 Answers  


What is the difference between the paint() and repaint() methods?

1 Answers  


How do you read and print a string in java?

1 Answers  


What is namespace in java?

1 Answers  


What is stringreader?

1 Answers  


why do we use interface in java?

5 Answers  


What is the difference between the reader/writer class hierarchy and the inputstream/outputstream class hierarchy in java programming?

1 Answers  


Can java list be null?

1 Answers  


Name the types of 'priority'?

2 Answers  


Categories