Basic Java Language: Difference between revisions

wikademia>Cremisis13
Line 10: Line 10:
public class NAME
public class NAME
</pre>
</pre>
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)
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:  NameNumberTwo)


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: