It is quiet easy to connect MS Access database through java program. Before proceeding with the program, let me explain some basic concepts used in this program.
This causes the driver class to dynamically load at runtime and it causes the driver to get initialized and returns the class object associated with it. If the driver used is correct then the static intializer of the class can be invoked to get the connection. Rest stuffs are self explanatory.
There are several ways for MS Access Database Connection, among them I have explained one.