Capgemini Interview Question

Java technical questions object,how can you re allocate dynamic memory ,SQL Queries, project depth