Cognizant Interview Question

describe garbage collection procedure in java? explain how lists are tackled in java? Give the SQL command to obtain the shown data from the given scheme?