Finally blocks are used to run the code, irrespective of the fact whether there is an exception or not. Finally always executes for a related try block.
Generally finally is used to close the resources opened in a try block. The reason to do so in finally is that, no matter whether there is an exception or not , we should close the resoruce. But in Java 7 you really don't need to bother with that, if you use try with resource for an AutoCloseable resource.
In your code, the relevance of finally is nothing except about learning how finally works.
Learn more about finally : http://docs.oracle.com/javase/tutorial/essential/exceptions/finally.html
and a note from the same link:
Important: The finally block is a key tool for preventing resource leaks. When closing a file or otherwise recovering resources, place the code in a finally block to ensure that resource is always recovered.
If you are using Java SE 7 or later, consider using the try-with-resources statement in these situations, which automatically releases system resources when no longer needed.