These are my two files to enter data into database and retrieve data from database.
I am able to enter the data into database but not able to retrieve the data from database.
What may be the reason ?? What is my mistake ?
Can anybody help me ?? Waiting for kind reply.
Thank you in advance.
The statement is not initalized so you will get null pointer exception.
try to use con.createStatement to initalize the statment
Can you please explain me ??
(please give that portion of coding for me also.)
As I am abeginner I want to know the reason for getting Nullpointer exception in this.
So please explain me or give me any link so that I can learn from that.
by the way, thank you so much for reply.
posted 7 years ago
Either con.createstatement is not working for me or I dont know how to add it..