Historically I have always written my Exception handling code like this:
Cursor cursor = null; try { cursor = db.openCursor(null, null);
No, you finally got it right.
Don't assign dummy values (null, in this case) to suppress compiler warnings about the use of uninitialized variables. Instead, heed the warning, and initialize your variables properly—as your second, "lazy" example demonstrates.
null