which of the following declarations are valid?choose all correct answer(s)?
1)int x=10;
2)int x=066;
3)int x=0786;
4)int x=0xFACE;
5)int x=0XBeer
6)int x=0xbea;
Options:
a)1,2,3,4,5,6
b)1,2,4,6
c)13,4,5,6
d)None of the above
which of the following declarations are not valid?
if not valid comment the reason? int a=10; int a=10l; long l=10l; long l=10; byte b=100; byte b=127; byte b=128; byte b=012; short s=200; short s=32768;
No comments:
Post a Comment