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 |
Is it possible to override the main method?
What are Access Specifiers and Access Modifiers.
What are the main uses of java?
What is the use of default method in interface in java?
How to add and remove nodes in Jtree?
I am a fresher and know core java, c languge, html, css etc if I am illegible for any job then send it on my email tatranakshay276@gmail.com
how to know the total memory occupied by the objects in the ArrayList(Array list may contain duplicate objects)
Say you want to store the information about a number of pets in an array. Typical information that you could store for each pet (where relevant) would be • Breed of animal • Animal's name • Its birth date • Its sex • Whether it has been sterilised or not • When it is due for its next inoculation • When it last had its wings clipped For each type of pet (eg. dog, cat or bird) you would typically define a class to hold the relevant data. Note: You do not need to implement these classes. Just answer the following questions. 3.1.1 What would be the advantage of creating a superclass (eg. Pet) and declaring an array of Pet objects over simply using an array of Objects, storing each of the instances of the different pet classes (eg. Dog, Cat or Bird) in it? 3.1.2 Would you define Pet as a class or as an interface? Why? (2) (2)
whatis Home interface and Remoteinterface? with example?
when you will synchronize a piece of your code? : Java thread
Is there any way to skip finally block of exception even if some exception occurs in the exception block?
why java does not have operator overloading?