Bookmark Topic Watch Topic
  • New Topic

main thread not exiting

 
subodh gupta
Ranch Hand
Posts: 203
  • Mark post as helpful
  • send pies
  • Report post to moderator
Hi All,

I am running one application program, what it has do is:

1) Open input file read it and insert the records in the database
2) So i am using BufferedReader, BufferedWritter and Jdbc
3) I am closing all the resources in the finally block (all checks are done for null...)

Problem is:
The main never exit by itself

Means if i put the
code:
--------------------------------------------------------------------------------

System.exit(0);

--------------------------------------------------------------------------------


line at the end of the main all is doing well otherwise program doesn't terminate.

Has anybody faced this problem?
 
Peter Chase
Ranch Hand
Posts: 1970
  • Mark post as helpful
  • send pies
  • Report post to moderator
Please do not cross-post the same question in more than one forum. CarefullyChooseOneForum

Everyone, please continue discussion in this thread.
 
    Bookmark Topic Watch Topic
  • New Topic