Hope that is useful for you....
//class definition
private static DatabaseManagement instance = null;
private String DB_URL="jdbc Driver={Microsoft Access Driver (*.mdb ,*.accdb)};DBQ=";
private final String DB_DRIVER="sun.jdbc.odbc.JdbcOdbcDriver";
private String filename="Jan.accdb";
private Connection con=null;
//constructor
Class.forName(DB_DRIVER).newInstance();
DB_URL+=filename.trim()+";DriverID=22;READONLY=tru e}";
con = DriverManager.getConnection( DB_URL ,"","");
it create the object in the main with new operator.