Pages

Monday, December 16, 2013

java - IDENTIFIER


It is given by the programmer.
Class name should be start with capital letter.
Method name should be start with small letter
Variable can start with the small letter, $,_(underscore)

Example:
Class Siva{
void calcPrint()
{ int a;
String $a; 
float _a;

  • Class name should be noun and method name should be verb.
  • Abstract method may have default abstract method.
  • Interface may also have the abstract method

No comments:

Post a Comment