I am making a program to search the student detail by enterering the roll number.In this I want to do if the student of entered roll number doest not exist in databse then it should diaplay a dialogue box The student of that roll number does not exist.
I have used
if(rs.wasNull())
display the dialogue box
else
display the details
but in each case else is executing but if is not why it is?

