北京爱恩科技发展有限公司笔试考题(三)

2014-11-24 01:04:22 · 作者: · 浏览: 31
IsBitOn(b, pos);
b = 4;
bu.IsBitOn(b, pos);


Result:


> Byte = 5, Bit at position 0 is on.
> Byte = 4, Bit at position 0 is off


Eg.
5 = 00000101
7 6 5 4 3 2 1 0
0 0 0 0 0 1 0 1


Bit at position 0 is on


Q 2. Explain why Java program can be easily run on different platforms/operating systems.


Q 3. Describe the structure of a Class in Java


Q 4. Explain Inheritance and Overloaded Function in Java