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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T17:19:17+00:00 2026-05-27T17:19:17+00:00

I have been trying to learn Java for the past week, and have been

  • 0

I have been trying to learn Java for the past week, and have been able to produce reasonable codes so far. However, I seem to have a problem in understanding the Java naming convention.

I just looked at a tutorial which says that class names should start with an upper case. If I look at the codes so far I have wrote, I have actually used lower case names, such as:

import java.io.*;
import java.util.*;

class orange implements Comparator {
    public int mango(...) {
    }
}

class jason {
    public static void main(String args[]) throws java.io.IOException {
        {
            // Content here
        }
    }
}

As you can see, both my class names start with a lower case.

When I compile and execute the program, I don’t get any compile errors, and everything works as expected. I should have thought, since the class name starts with lower case, it would end up with a compile error: but this hasn’t happened. Why?

If it helps, I run OpenJDK and IcedTea.

  • 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-27T17:19:18+00:00Added an answer on May 27, 2026 at 5:19 pm

    A naming convention is a rule to follow as you decide what to name
    your identifiers (e.g. class, package, variable, method, etc..) and it
    is not an EXCEPTION.

    A good programmer must and will follow the naming conventions specified in any programming language for a neat and effective program.

    Refer to this page for more Java naming conventions.

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

Sidebar

Related Questions

I have been trying to learn Java for the past few days so my
I'm very new to PHP so far and have been trying to learn it.
I have been trying to learn multi-threaded programming in C# and I am confused
I have been trying to learn how to add testing to existing code --
I have been trying to learn more about lambda expressions lately, and thought of
I have been trying to learn Erlang and have been running into some problems
I have been trying to learn a cross platform language with a fast learning
I have been trying to learn assembly for a few years now. I get
I have been trying to learn Yii without luck. I find Zend Framework, Kohana,
So I have been trying to recreate Pong in Box2D to learn how to

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.