- 论坛徽章:
- 0
|
====第1题====
//====3303====麻烦修正
1.import java.lang.Math;
2.public class Te{
3.public static void main(String[] a){
4. Math myMath = new Math();
5. System.out.println("cosine of 0.123 = " + myMath.cos(0.123));
6. }
7.}
====第2题====
//====3002===为何不选"2)"
//Consider the following class definition:
1. public class Test extends Base {
2. public Test(int j) {
3. }
4. public Test(int j, int k) {
5. super(j, k);
6. }
7. }
Which of the following forms of constructor must exist explicitly in the definition of the Base class?
Mutiple:
1) Base() { }
2) Base(int j) { }
3) Base(int j, int k) { }
4) Base(int j, int k, int l) { }
// 1)3)
====第3题====
//=====2204====jdk中还有其他class吗
Which of the following classes override the equals() method.
Mutiple:
1) String
2) Integer
3) Double
4) Date
5) File
// 1)2)3)4)5)
====第4题====
//====1604===为什么 F1对F2编译错
float F1=(float)4096.0;//F1=4096.0
float F2=4096.0; //javac *.java erro |
|