How would you code the following in Java?
-Organize the code capable of throwing an exception of type ParseException as a try block.
-Include a catch block to handle a ParseException error thown by the try block.
-Include a hard-coded error that results in a ParseException to prove that the code can catch and handle this type of exception.