Saturday, March 19, 2011

1. a b c d g i j k
byte short int long float double boolean char

2. d
Compile error at line 18
Both class A and B are declared in the same package.
Therefore, class B has access to the public, protected, and package access methods of class A.

3. b
Prints: BCD
The index for the first element of an array is zero.

No comments:

Post a Comment