Historically I have always written my Exception handling code like this:
Cursor cursor = null; try { cursor = db.openCursor(null, null);
Different people have different opinions.But It is recommended to use first option because if there is any trouble opening the cursor, an exception could be thrown and handled.That is one safe way of programming.