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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T06:33:25+00:00 2026-06-01T06:33:25+00:00

Java Naming rules suggests which one to be used. This public static final class

  • 0

Java Naming rules suggests which one to be used.
This

public static final class DatabaseTable

or, this

public static final class DATABASE_TABLE

Which one is correct?

  • 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-01T06:33:26+00:00Added an answer on June 1, 2026 at 6:33 am

    There is no such thing as “incorrect” here, in the sense that the Java compiler or syntax of the language does not force you to use specific naming conventions.

    If we look at the old Code Conventions for the Java Programming Language document, specifically Chapter 9 – Naming Conventions, we see that classes should have CamelCaseNames:

    Class names should be nouns, in mixed case with the first letter of each internal word capitalized. Try to keep your class names simple and descriptive. Use whole words-avoid acronyms and abbreviations (unless the abbreviation is much more widely used than the long form, such as URL or HTML).

    It doesn’t matter if the class is a nested class (static) or if the class is final.

    ALL_UPPERCASE_NAMES are for constants; static final variables (not classes).

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

Sidebar

Related Questions

If I have user id variable, what is correct java naming convention for it?
(Java question) If I reference a field in an inner class, does this cause
Following Alan Green's Naming Java classes without Manager I've started hunting *Manager classes in
I'm already familiar with the standard Java package naming convention of using a domain
The standard naming convention in the Java world is to name packages, classes and
Java is one of my programming languages of choice. I always run into the
Is there a package naming convention for Python like Java's com.company.actualpackage ? Most of
I'm trying to implement an ejb-call by using JNDI-naming. Setup: JBoss-6.1.0.Final ear-deploy: gwt.war ejb.jar
As the title suggests, what does javax.naming.NoInitialContextException mean in non technical terms? And what
Currently we have a dilemma with my parters with the package naming (java) of

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.