Question: Null pointer execption
what is null pointer exception. I am getting the null pointer exception in this line conn= com.mypay.dao.Connection.getConnection(); what is wrong.
There might be some issue with getting the database connection.
check the tutorial JDBC connection, which explains you how to connect to database correctly.