1.

Java handles memory dynamically and references are deleted as soon as they are out of scope.(a) True(b) FalseThis question was posed to me in an international level competition.This key question is from Object Reference topic in portion Object of Object Oriented Programming

Answer»

Right option is (a) True

To explain: In Java, it is inbuilt feature that HANDLES all the memory dynamically. It is not necessary to free or DESTROY all the REFERENCES MADE from a FUNCTION which is going out of scope. You can call destroy or free methods explicitly but there is no mandatory rule.



Discussion

No Comment Found

Related InterviewSolutions