When querying the database directly, result is NULL, now Im using ResultSet to check if result is NULL, do something else, if result is not NULL, print the result: This my COde:
if(rs4 != null) {
            while(rs4.next()) {
            String ad =rs4.getString("number");                    
            System.out.println(ad);
            }
        }
        else{
            System.out.println("ZERO ENTRIES");
        }` 
Database row value is NULL,since there is no row returned from my query so definitely i expect the else statement to run, but now the if statement is still being excecuted and prints null
 
     
    