Can an object?s finalize() method be invoked while it is
reachable?

Answers were Sorted based on User's Feedback



Can an object?s finalize() method be invoked while it is reachable?..

Answer / janet

While the object is still reachable, an object?s finalize()
method cannot be invoked by the garbage collector.
However, an object?s finalize() method may be invoked by
other objects.

Is This Answer Correct ?    3 Yes 0 No

Can an object?s finalize() method be invoked while it is reachable?..

Answer / ravikiran(aptech mumbai)

yes...

Is This Answer Correct ?    0 Yes 5 No

Post New Answer

More Core Java Interview Questions

What is ellipsis in java?

0 Answers  


What is the byte range?

0 Answers  


diffrence b\w println() and printf()

8 Answers   NIIT,


Every class extends object but why it is not possible for every object to invoke clone() method. ideally protected methods should be accessible from sub classes. isn't it?

2 Answers  


What is parseint?

0 Answers  






Is it possible to write JAVA program without including any of the packages,such as "import java.io.*"; bcoz I instantly wrote a code without "import..." statement and runned the program on command Line & it worked. the code is: class Person { String name; int age; Person(String s,int a) { name = s; age = a; } accept() { System.out.println(name+"Hi!!!!!"); System.out.println(age); } } class Demo { public static void main(Strings args[])throws IOException { String name = args[0]; int age = Integer.parseInt(args[1]); Person p = new Person(name,age); p.accept(); } }

3 Answers  


what is the logic inside any default constuctor?

2 Answers  


Can abstract class have private constructor?

0 Answers  


What are the different collection views provided by maps?

0 Answers  


Which graphs are functions?

0 Answers  


What are encapsulation, inheritance and polymorphism?

0 Answers  


When we serialize an object does the serialization mechanism saves its references too?

0 Answers  


Categories