| Author |
Jxam Quation
|
Hima Nadi
Ranch Hand
Joined: Apr 08, 2002
Posts: 32
|
|
leagal anmes for variables 1)-int 2)%large 3)$fred 4)Integer 5)2much my ans is 1,3 is 4 also leagel any help?
|
 |
Joshua Kueck
Ranch Hand
Joined: Mar 14, 2002
Posts: 71
|
|
Just try it and see
|
 |
Jim Bedenbaugh
Ranch Hand
Joined: Nov 09, 2001
Posts: 171
|
|
Originally posted by Hima Nadi: leagal anmes for variables 1)-int 2)%large 3)$fred 4)Integer 5)2much my ans is 1,3 is 4 also leagel any help?
Your answer is incorrect. 3 and 4 are the correct answers. Variables may start with _ $ or alpha. Numerics may appear later in the variable name. Integer is a correct variable name as it is not a reserved word. What study text are you using? All this should be covered there. . .
|
Regards,
Jim
SCJP, SCJD, SCWCD, SCEA Part I
|
 |
Hima Nadi
Ranch Hand
Joined: Apr 08, 2002
Posts: 32
|
|
Sorry to trouble you Jim, Somehow I got a wrong impression that Integer, Character.. Are should not be used as variable names. Now I am clear. Thanks for help
|
 |
Jessica Sant
Sheriff
Joined: Oct 17, 2001
Posts: 4313
|
|
they probably "should" not be used -- 'cause it could cause the programmer to be confused while writing the code... but that doesn't mean that they "could" not be used.
|
 |
 |
|
|
subject: Jxam Quation
|
|
|