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 845369
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T06:26:23+00:00 2026-05-15T06:26:23+00:00

when does the methods socket.close() and someStream.close() throws IOException? and how can I solve

  • 0

when does the methods socket.close() and someStream.close() throws IOException?
and how can I solve the problem?

thanks
benny.

  • 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-15T06:26:24+00:00Added an answer on May 15, 2026 at 6:26 am

    Not checking the return value of close() is a common but nevertheless serious programming error. It is quite possible that errors on a previous write(2) operation are first reported at the final close(). Not checking the return value when closing the file may lead to silent loss of data. This can especially be observed with NFS and with disk quota.

    While closing a readonly stream can’t throw, java’s IO framework can’t check for that as it doesn’t have statically checked read vs. write streams

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

Sidebar

Ask A Question

Stats

  • Questions 510k
  • Answers 510k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer struct MyStruct PassedStruct[] is mostly an alternative syntax for: struct… May 16, 2026 at 4:55 pm
  • Editorial Team
    Editorial Team added an answer I changed some of the settings in the .js file… May 16, 2026 at 4:55 pm
  • Editorial Team
    Editorial Team added an answer That query will return an IEnumerable where each of the… May 16, 2026 at 4:55 pm

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

Related Questions

I'm very curious - why does UITextInputDelegate have all its methods required? Why can't
What is a more efficient methods for drawing circles on a canvas. I can
I'm creating a Java socket in Javascript, sending an HTTP request and receiving a
I am making a prototype client & server so that I can understand how
Consider the following code: // module level declaration Socket _client; void ProcessSocket() { _client
I am using the BLIP/MYNetwork library to establish a basic tcp socket connection between
I'm having an issue with the Socket.SendAsync method not detecting a dead TCP connection.
the Canvas class does not take Shape as a parameter for any of its
Does anyone have any experience of supporting multiple realms in HTTP Authentication? The Microsoft
Does D have 'newtype' (as in Haskell). It's a naive question, as I'm just

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.