Monday, June 8, 2009

Rules_For_Naming_Variable_In_Java

What are the rules for naming variable in Java?

 

The rules for naming variables in java:-

  1. Must not be a keyword in java.
  2. Must not begin with a digit.
  3. Must not contain embedded spaces.
  4. Can contain characters from various alphabets, like Japanese, Greek and Cyrillic.

0 comments:

Post a Comment

Followers

Template by: