java里定义了新的对象,如日期对象,就需要try catch来处理。否则报unhandled exception type parseexception 错误