Can an object?s finalize() method be invoked while it is
reachable?
Answers were Sorted based on User's Feedback
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 |
What is ellipsis in java?
What is the byte range?
diffrence b\w println() and printf()
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?
What is parseint?
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(); } }
what is the logic inside any default constuctor?
Can abstract class have private constructor?
What are the different collection views provided by maps?
Which graphs are functions?
What are encapsulation, inheritance and polymorphism?
When we serialize an object does the serialization mechanism saves its references too?