Self Test                                                                                      

1) In the following which is arg[0]  // assume main has arguments ( String [] arg )

c:|> java Movie Terminator X-Men Hulk Batman 

a) java
b) Movie
c) Terminator
d) X-Men
e) Hulk
f) Batman              (  c )

 2)  Java identifiers are case sensitive .[True or False ]       True

3) The class file created by the javac compiler will have the same
name as the top level class in the corresponding source file. 
                                                        [ True  or  False ]     True

4) The following are valid identifiers [Mark each True or False]

f) $999            - True
g)  %box        - False
h) J-Tree        - False
i) _$_$_9        - True
j) Walter&89   - False

5) The following are valid comments [Mark each True or False ]

a)  /** last comment **/        - True
b)  //another comment */      - True  as last asterisk forward slash are commented out
c)  /** and another               - False
d)  // comment falls through  - False
        to next line
e) /*    /Hello/       */             - True

6 ) The following are valid escape sequences. [ Mark each True or False]

a)   \\                 - True
b)   \b                - True
c )  \n                - True
d)   \x                - False