[Java] Use shutdown hook to ensure execute statements at the end.
[Java] Use shutdown hook to ensure execute statements at the end.

sgkim126/snippets,sgkim126/snippets,sgkim126/snippets,sgkim126/snippets,sgkim126/snippets,sgkim126/snippets,sgkim126/snippets,sgkim126/snippets,sgkim126/snippets,sgkim126/snippets,sgkim126/snippets,sgkim126/snippets