java - thread by killing them abruptly. # How will you...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
Sheet1 Page 1 # What is garbage collection? What is the process that is responsible for doing that in java? - Reclaiming the unused memory by the invalid objects. Garbage collector is responsible for this process # What kind of thread is the Garbage collector thread? - It is a daemon thread. # What is a daemon thread? - These are the threads which can run without user intervention. The JVM can exit when there are daemon
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: thread by killing them abruptly. # How will you invoke any external process in Java? -Runtime.getRuntime().exec( .) # What is the finalize method do? - Before the invalid objects get garbage collected, the JVM give the user a chance to clean up some resources before it got garbage collected....
View Full Document

Ask a homework question - tutors are online