You only need to declare a variable once in a given method or class; after that you can refer to it without redeclaring it. To "declare" a variable, you give both its name and its type. This is a declaration:

ResultSet rs1 = null;

To refer to that variable again, you just use the name, and not the type: