I have this program
private Recordset readExcelData()
{
    Recordset rs;
    try
    {
     //some logic here          
    }
    catch (Exception e) 
    {
        e.printStackTrace();
    }
    return rs;
}
I get this error that rs should be initialized. I understand the reason is because unless it is initialized there wont be any space allocated to rs.
I fix this by
Recordset rs=null;
My question is, how does this fix the issue that was there earlier? Even now, rs has no space allocated. Isn't it? Or, Am I missing something?
