What will happen if database is not closed properly after using it?
System will automatically close database, as java has garbage collector.
nothing will happen
It will leak the memory. Once you are done with database we have to close it, because it will be cached into memory when we open it and eat up memory space.
If database is not closed properly, then what ever the data that was inserted & what ever the modifications done in that session will be lost.
Back To Top