how come we know the object is no more used in the class?

Answers were Sorted based on User's Feedback



how come we know the object is no more used in the class?..

Answer / guest

if it is not reachable

Is This Answer Correct ?    4 Yes 0 No

how come we know the object is no more used in the class?..

Answer / megha

using finalize() method on that object

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Core Java Interview Questions

Explain about abstract classes in java?

0 Answers  


What is the purpose of the File class?

3 Answers  


What is method overloading and method overriding?

0 Answers  


Does set allows null in java?

0 Answers  


Given: 11. public static void main(String[] args) { 12. Integer i = uew Integer(1) + new Integer(2); 13. switch(i) { 14. case 3: System.out.println(”three”); break; 15. default: System.out.println(”other”); break; 16. } 17. } ‘What is the result? 1 three 2 other 3 An exception is thrown at runtime. 4 Compilation fails because of an error on line 12.

9 Answers  






What is a native method in java programming?

0 Answers  


What is difference between local variable and global variable?

0 Answers  


What are the methods used to implement for the key object in the hash map?

0 Answers  


What is type safety in java?

0 Answers  


Why is java logo a cup of coffee?

0 Answers  


What is the purpose of the finally clause?

3 Answers  


These static constructors are correct ? class A { statc intA() { } static A(int x,int y) { } static A(int x) { } }

0 Answers   HCL,


Categories