Discussion Forum : Introduction To Methods And Streams
Question -

Which of the following statements are incorrect?

Options:
A .  Default constructor is called at the time of declaration of the object if a constructor has not been defined.
B .  Constructor can be parameterized.
C .  finalize() method is called when a object goes out of scope and is no longer needed.
D .  finalize() method must be declared protected.
Answer: Option C

finalize() method is called just prior to garbage collection. It is not called when object goes 

out of scope.



Was this answer helpful ?
Next Question
Submit Your Solution hear:

Your email address will not be published. Required fields are marked *