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

The Archive Base Latest Questions

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

I just read Enhancements in Java7( http://docs.oracle.com/javase/7/docs/technotes/guides/language/underscores-literals.html ). In that I see Underscores Numeric

  • 0

I just read Enhancements in Java7(
http://docs.oracle.com/javase/7/docs/technotes/guides/language/underscores-literals.html).
In that I see Underscores Numeric Literals and try Like….

int i=9_000; its OK.

But I see rules for that it also allows like…

int i=9____________________________________________________________________________________000;

Is there any end of Underscores?

  • 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-31T03:53:37+00:00Added an answer on May 31, 2026 at 3:53 am

    No, there’s no limit. Java allows any amount of underscores although, depending on how your compiler is implemented, you may run into problems for bizarre edge cases like several billion of them 🙂

    In those places where you can have underscores, the language specification does not limit the quantity. I emphasise “can” there because there are places where they’re not allowed, such as before the first digit, after the last, next to the decimal point and so on. But that’s a different issue.

    However, rather than ask if it’s possible, you should instead ask what would be the point of more than one consecutive underscore.

    One underscore aids readability by naturally grouping the numbers:

    1_000_000
    4072_1199_6645_1234

    whereas more than one tends to reduce readability:

    1_0_0________000_0
    4072___________________________11_9_9_6641234
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I just read this: http://haacked.com/archive/2008/11/20/anatomy-of-a-subtle-json-vulnerability.aspx I was under the impression that overwriting Object or
I just read http://aspalliance.com/2062_The_Darkness_Behind_DateTimeNow and started to wonder if this is really something to
I just read http://olstrans.sourceforge.net/release/OLS2000-ext3/OLS2000-ext3.html which is an excellent review of the design issues used
I just read the following at http://w3fools.com/#html_forms : Non-block-level elements (such as <input> )
I just read about HTML 5's WebSocket interface. How can I start trying this?
I just read an article in the BlackBerry docs about writing efficient code in
I just read up on a performance of LINQ, and there is a HUGE
I just read the Wikipedia article on mock objects , but I'm still not
I just read a post mentioning full text search in SQL. I was just
I just read this post about why new-line warnings exist, but to be honest

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.