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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T11:53:36+00:00 2026-05-13T11:53:36+00:00

Where is exactly is the demarkation between a version of Java and the JVM?

  • 0

Where is exactly is the demarkation between a version of Java and the JVM?

I’m asking because of a recent ‘educational’ comment thread with a fellow SOpedian regarding the default buffer size of java.io.BufferedInputStream, which I see is 8192. (Has it always been 8192?) When thinking about just the API, it is clear to be what is what. But with the implementation of a java.* class…I just don’t know.

This leads to two derivative questions:

  • Could BufferedInputStream‘s default buffer size change between versions of Java?
  • Could BufferedInputStream‘s default buffer size be different on various vendor’s JVMs?

(Surely there are other similar examples, like in the implementation of various collections.)

  • 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-13T11:53:36+00:00Added an answer on May 13, 2026 at 11:53 am

    Since the API specification of BufferedInputStream doesn’t specify a value, it is entirely up to the implementation to choose one.

    This means that the default buffer size can change between Java versions as well as between different implementations of the same Java specification.

    It’s pretty much the same in other areas: the real specification is the documentation (i.e. JLS, JVM Specification and API specification, or rather the corresponding JCPs).

    Everything else (i.e. everything you can see from looking at the source) is an implementation detail and depending on it is a bug.

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

Sidebar

Ask A Question

Stats

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

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

    • 7 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team

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

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer First of all, I wouldn't use for-in, I'd use a… May 13, 2026 at 5:52 pm
  • Editorial Team
    Editorial Team added an answer The way to import it is to import app.sub2.sub2, from… May 13, 2026 at 5:52 pm
  • Editorial Team
    Editorial Team added an answer $form->create('User', array('action' => '…', 'id' => false)); Just explicitly set… May 13, 2026 at 5:52 pm

Related Questions

In one part of the application I'm working on, there is a form control
Can anyone please explain how this works #define maxMacro(a,b) ( (a) > (b) )
I would like to know what the best Scala imitation of Groovy's safe-dereference operator
I am working on a project involving optimizing energy consumption within a system. Part
The current top-voted to this question states: Another one that's not so much a

Trending Tags

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

Top Members

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.