What is diffrent between truncate and delete command in java? explain with example