JavaNames - Naming in Java (JavaNames.doc) Java has strict...

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
Naming in Java (JavaNames.doc) Java has strict naming conventions and we will require that you follow these as all good Java programmers do. If this is followed, you can look at code and tell immediately if a term refers to a class, package, method, field, or variable (five of the most common things you find in Java programs). We will summarize some conventions in this document, but please refer to the CodeConventions.pdf file in this assignment for more details. 1. Classes a. Give classes names that typically have just letters and numbers – no spaces (see the text for the complete rules but this is the way most Java programmers do it) b. capitalize every word in the name c. Correct- MyDatabase, Purchase, TheFirstTry, Purchase2 d. Incorrect – myFirst, 2Program, Thefirsttry 2. Packages a. All small letters b. Multiple parts are separated by periods c. To make package names unique across everyone’s applications, you really are suppose to use your Web address backwards, and add on specifics
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Image of page 2
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 03/22/2010 for the course IPT IPT120 taught by Professor Dr.dianewolfe during the Fall '09 term at Virginia Tech.

Page1 / 2

JavaNames - Naming in Java (JavaNames.doc) Java has strict...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online