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

  • SEARCH
  • Home
  • 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 9195391
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T21:37:05+00:00 2026-06-17T21:37:05+00:00

I see in several application source like Minecraft and JIrcs they both use java.io

  • 0

I see in several application source like Minecraft and JIrcs they both use java.io to implement Reactor Plugin (if I’m not wrong) and also in this article. So, what is the difference between java.io and java.nio when implementing Reactor Pattern? I mean, like performance advantage, process efficiency etc and where i can get good tutorial if you think java.io is the good solution to implement Reactor Pattern (since google give me tons of java.nio tuts not java.io as i want)

  • 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-06-17T21:37:06+00:00Added an answer on June 17, 2026 at 9:37 pm

    I hope you can get a conclusion with the below information taken from the book
    at page no.42

    java.io.* classes use the decorator design pattern. The decorator
    design pattern attaches responsibilities to objects at runtime.
    Decorators are more flexible than inheritance because the
    inheritance attaches responsibility to classes at compile time. The java.io.* classes use the decorator pattern to construct different
    combinations of behaviour at runtime based on some basic classes.

    and 43.

    Java has no long been suited for developing programs that perform a
    lot of I/O operations. Furthermore, commonly needed tasks such as file
    locking, non-blocking and asynchronous I/O operations and ability to
    map file to memory were not available. Non-blocking I/O operations
    were achieved through work around such as multithreading or using JNI.
    The New I/O API (aka NIO) in J2SE 1/4 has changed this
    situation.
    A server’s availability to handle several client requests effectively depends on how it uses I/O streams. When a server has to
    handle hundreds of clients simultaneously, it must be able to use I/O
    services concurrenty, one way to cater for this scenario in Java is to
    use threads but having almost one-to-one ratio of threads (100 clients
    will have 100 threads) is prone to anormous thread overhead and can
    result in performance and scalability problems due to consumtion of
    memory stacks
    (i.e. each thread has its stack, Refer Q34,
    Q42 in Java section) and CPU context switching(i.e. switching between threads as opposed to doing real computation.). To overcome
    this problem, a new set of non-blocking I/O classes have been
    introduced to the Java platform in java.nio package. The non-blocking
    I/O mechanism is built around Selectors and channels. Channels,
    Buffers and Selectors are the core of the NIO.

    and read more.
    Here are some reference links which provide Java IO vs Java NIO :
    Java IO Faster Than NIO – Old is New Again!, Java IO vs Java NIO and IO vs. NIO – Interruptions, Timeouts and Buffers.

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

Sidebar

Related Questions

I see several programmers, including Apple, creating codes where they declare stuff like this:
For an existing java application (which I do not have the source code) I
I have an application that uses several different Java classes and would like to
We have a Java web application and we'd like to set up some basic
My exe (an MFC application) contains several icons. I can see them and their
I have an open source Java application that uses Hibernate and HSQLDB for persistence.
I just want to know if I can see several videos at once from
I see there are several posts regarding Cannot set Property and I'm still struggling
I need a regular expression that will accept well-formed emails in several formats (see
Why Unicode has several reserved character codes? See the Unicode for two languages- Kannada

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.