微信

使用微信服务,更方便

职友集>Java面试题 > Java英文面试题

Java英文面试题

2015-08-17 06:30:02 阅读( 7 )

2401人 收藏本页

标签:Java面试题

Q 1. Construct a Java program to do the following
(if you do this question, you do not have to answer Q2, Q3 and Q4):

byte b =
byte pos = ;
bu.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

来自IT公司面试手册

下一篇:中海讯通笔试题

上一篇:一道输出判断型Java面试题

亲~ 如果您有更好的答案 可在评论区发表您独到的见解。

您想查看更多的信息: 面试题