A list of variable names and tells whether each is legal or illegal in Java.

Post date: Jan 20, 2014 7:48:55 AM

Variable Name              Legal or Illegalr

dayOfWeek                    legal

 3dGraph                        Illegal because identifiers cannot begin with a digit

 junel997                         legal

 mixture#3                      Illegal because identifiers may use only alphabetic

                                      letters, digits, underscores, or dollar signs

 week day                       Illegal because identifiers cannot contain spaces