Monday 11 March 2013

Default type of short, static, unsigned, const


Consider on following declaration:
(i)        short i=10;
(ii)      static i=10;
(iii)    unsigned i=10;
(iv)      const i=10;
Choose correct one:

Explanation: All are correct. Default data type of above all declaration is int.


Blog Author: Vijay Kumar

Go to: Java Aptitude

No comments:

Post a Comment