Basic Java Language: Difference between revisions
| Line 10: | Line 10: | ||
public class NAME | public class NAME | ||
</pre> | </pre> | ||
NAME, again,is the identifier. | NAME, again,is the identifier. (Java is case sensitive; so NAME is different from Name. Industry convention suggest naming classes using mixed case, starting with an uppercase letter.[http://java.sun.com/docs/codeconv/html/CodeConvTOC.doc.html] For example: Name) | ||
Classes also have a body - where you actually put the things. To create the body you have a { and }. For example: | Classes also have a body - where you actually put the things. To create the body you have a { and }. For example: | ||