Java Interview Question And Answer Does garbage collection guarantee that a program will not run out
201 views · Published 24 December 2013 · 3:37 · Indexed 18 October 2026
Channel: Interview DOT · 2013 · Science & Technology
Click here - https://www.youtube.com/channel/UCd0U_xlQxdZynq09knDszXA?sub_confirmation=1 to get notifications. Java Interview Question And Answer Does garbage collection guarantee that a program will not run out A Job Portal http://www.InterviewDot.com http://www.InterviewDot.com http://www.InterviewDot.com One Click Dream Job - http://www.interviewdot.com/upload-resume/uploadresume.htm Other Top Job Portals www.Naukri.com www.MonsterIndia.com www.TimesJobs.com Are you looking for a new Job ? InterviewDot.com - A Job Portal http://www.InterviewDot.com http://www.InterviewDot.com http://www.InterviewDot.com One Click Dream Job - http://www.interviewdot.com/upload-resume/uploadresume.htm Does garbage collection guarantee that a program will not run out of memory ? Java Interview Question And Answer ? 1.Does garbage collection guarantee that a program will not run out of memory ? Garbage collection does not guarantee that a program will not run out of memory. It is possible for programs to use up memory resources faster than they are garbage collected. It is also possible for programs to create objects that are not subject to garbage collection. 2.Can an object's finalize method be invoked while it is reachable? An object's finalize method cannot be invoked by the garbage collector while the object is still reachable. However, an object's finalize method may be invoked by other objects. 3.When a thread is created and started, what is its initial state ? A thread is in the ready/runnable state after it has been created and started. 4.What is the purpose of finalization? The purpose of finalization is to give an unreachable object the opportunity to perform any cleanup processing before the object is garbage collected. 5.What are the high-level thread states? The high-level thread states are ready/runnable, running, waiting,blocked i/o, and dead.
More from this channel
-
7:19
java pass by value
-
3:19
java interview best books
-
8:03
Explain java finally block
-
4:29
what are the advantages of OOPL Java Interview
-
2:40
what is java decompiler how to decompile java code
-
5:51
Top 4 Job Interview Tips How to prepare for Job interview
-
5:29
Top Job Interview TIPS What are your strengths How to answer
-
3:49
Top 16 Job Interview Questions Best Job Interview Questions