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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T08:07:15+00:00 2026-05-28T08:07:15+00:00

On official Java site I came across this lines you cannot place underscores in

  • 0

On official Java site I came across this lines

    you cannot place underscores in the following places:

     At the beginning or end of a number...

Also they have given a example

int x1 = _52;              // This is an identifier, not a numeric literal

When I used it in my code it didn’t gave any compile time error

long l = _23L;      

Can we use _ at the beginning?
What does it mean by

This is an identifier, not a numeric literal

Sorry if it is a really silly question, I haven’t revised Java basics from long time.

EDIT :
I am using Windows XP and Java 7

java version "1.7.0_02"
Java(TM) SE Runtime Environment (build 1.7.0_02-b13)
Java HotSpot(TM) Client VM (build 22.0-b10, mixed mode, sharing)
  • 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-28T08:07:16+00:00Added an answer on May 28, 2026 at 8:07 am

    Literals are any thing which you hardcoded in the code like:

    int x  = 10;
    String str = "hello";
    

    In this 10 and hello are literals.

    So numeric literal is nothing but literal having numerical value.

    Identifiers are names given to objects, classes etc. but cannot be keywords like int, boolean, null etc.

    So in above example x, str and String are identifiers.

    SIDE NOTE: How you define numerical literals are different from JDK 6 to JDK 7. So code in question will only run for JDK7

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

Sidebar

Related Questions

Why this line doesn't work? import static java.nio.file.AccessMode.*; Eclipse says: The import java.nio.file cannot
Official problem: Write Java method to perform recursive descent parse of the following production:
I'm learning about deadlocks in Java, and there's this sample code from Sun's official
I am trying to get this up code up and running from java official
Consider this code from the official OpenJDK source of java.awt.font.TextLayout : public final class
Is there an official site where I can see all the java bugs for
I googled,I checked wikipedia.None of them helped me to find an official java compiler
The official oauth guide makes this recommendation: It is important not to try and
I do Java programming and recently started learning Python via the official documentation. I
I'm working on a web site project with a Java component and am currently

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.