Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7555105
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T11:30:58+00:00 2026-05-30T11:30:58+00:00

This is the problem. I’m working on a little Java tool which is composed

  • 0

This is the problem. I’m working on a little Java tool which is composed of 2 steps (read & write then analysis of the previously created file).

As the two steps are quite heavy in terms of quantity of heap space, I would like to release all the resources and empty the memory before going ahead (as in System.exit(0)).

Is it possible? How can I do that?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-30T11:30:59+00:00Added an answer on May 30, 2026 at 11:30 am

    Java’s GC should take care of your memory. If an object is not referenced, you should be fine. If you have open Files or streams, close them explicitly. Otherwise, you should be good. Is there anything specific that you looking for that is causing an issue and need help with?

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

This problem crops up every now and then at work. Our build machine can
This problem pertains to Java By using RandomAccessFile I intend to be able to
This problem is happening for me on IE8 and Chrome which makes me think
This problem is solved. I'm am developing a Java Swing based projected, and the
This problem has been KILLING me. I've been working on this app for 8
This problem exists only in IE browser, in mozilla its working fine... i have
This problem relates to the Restlet framework and Java When a client wants to
This problem is going to be a little harder to explain, so bear with
This problem is pretty simple, I think. The thing is: My TextView (Which is
This problem has been vexing me for a little over a day. The gist

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.