Question about java programming/compiling

Discussion in 'OT Technology' started by Biomechanoid, Aug 30, 2004.

  1. Biomechanoid

    Biomechanoid New Member

    Joined:
    Oct 21, 2003
    Messages:
    7,265
    Likes Received:
    0
    Location:
    In the Woodline.
    In my Java class we learned that a java program name cannot start with a number. when I asked the instructor WHY, he said that it is irrevelant to the class and didn't provide an answer. I know that it gives an error when the program tries to compile, but I'm curious as to why that is.
     
  2. carlin

    carlin Guest

    so basically its irrevelant :o
     
  3. Biomechanoid

    Biomechanoid New Member

    Joined:
    Oct 21, 2003
    Messages:
    7,265
    Likes Received:
    0
    Location:
    In the Woodline.

    ah. so basically, when the people who wrote the java programming rules created the indentifier naming system they said "and lets just screw starting program names with numbers because no one does that." am I right?
     
  4. carlin

    carlin Guest

    thats one way of looking at it... :hs:
     
  5. ndnxtc

    ndnxtc New Member

    Joined:
    Apr 10, 2004
    Messages:
    3,208
    Likes Received:
    0
    Location:
    SE MI
    i believe it is b/c of the valid identifer, the files cant start w/ a number cus when u compile, lets say randomprog.java it also creates a randomprog.class file and classes r not allowed to start w/ a number, so blah blah blah, thas wut i am thinking, there could b another reason but this is one for sure i knoo of
     

Share This Page