[java] better try{}catch{} blocks in main