+ 3

What this statement means in the following code @SuppressWarnings("resource")

while coding in eclipse it is auto suggested to remove warning https://code.sololearn.com/cMISXvcuS7b0/?ref=app

22nd Apr 2017, 7:29 PM
Simranjeet Singh
Simranjeet Singh - avatar
2 Respuestas
+ 13
This suppress warning points to not closing a resource you opened before. As far as I can see on my mobile, you're closing scanner but don't disconnect/close() your db connection. I hope I got that right, mobile view is not good for debugging -.-
22nd Apr 2017, 7:44 PM
Tashi N
Tashi N - avatar
+ 4
@tashi thanks alot😊😊😊
22nd Apr 2017, 7:58 PM
Simranjeet Singh
Simranjeet Singh - avatar