Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.java.programmer > #31114

Quick Question

Newsgroups comp.lang.java.programmer
Date 2015-02-11 09:56 -0800
Message-ID <73c71bbc-e620-42f0-9424-6ff70cdefa81@googlegroups.com> (permalink)
Subject Quick Question
From Doug Mika <dougmmika@gmail.com>

Show all headers | View raw


I have code that I need to execute upon the user closing my program.  To be exact I need to close the file stream when the user closes my application.  How can I program this?  There are no destructors in Java, and that was one idea I had but destructors aren't always called?

Any advice is appreciated

Doug

Back to comp.lang.java.programmer | Previous | Next — Next in thread | Find similar | Unroll thread


Thread

Quick Question Doug Mika <dougmmika@gmail.com> - 2015-02-11 09:56 -0800
  Re: Quick Question Eric Sosman <esosman@comcast-dot-net.invalid> - 2015-02-11 13:19 -0500
  Re: Quick Question Doug Mika <dougmmika@gmail.com> - 2015-02-11 11:27 -0800
  Re: Quick Question Arne Vajhøj <arne@vajhoej.dk> - 2015-02-14 22:37 -0500

csiph-web