Jump to content
  • 0

Close.acis Pack


Red-Hair-Shanks

Question

geia sas magkes..exw perasi ena code sto acis kai mou bgazi se afti ti grami error to close...pws to ftiaxnw??
L2DatabaseFactory.close(con);     

Edited by ourat1995
Link to comment
Share on other sites

8 answers to this question

Recommended Posts

  • 0

This stuff is handled by a Java 7 feature, named "try with ressources" . Read others db connections on the project to see how it must be written. Advantages are it lowers the amount of code and there's no need to manually close stuff anymore.

 

http://docs.oracle.com/javase/tutorial/essential/exceptions/tryResourceClose.html

 

Sorry for the non greek post, I fix it : kalimera malaka.

Edited by Tryskell
Link to comment
Share on other sites

Guest
This topic is now closed to further replies.


×
×
  • Create New...

AdBlock Extension Detected!

Our website is made possible by displaying online advertisements to our members.

Please disable AdBlock browser extension first, to be able to use our community.

I've Disabled AdBlock