亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? 經典147題庫修正版(scjp考生必做).txt

?? SCJD經典147題庫修正版(SCJP考生必做)
?? TXT
?? 第 1 頁 / 共 2 頁
字號:
1
====

1.  public class test {
2.    public static void main (String args[]) {
3.      int  i = 0xFFFFFFF1;
4.      int  j = ~i;
5.  
6.    }
7.  } 

What is the decimal value of j at line 5? 

A. 0
B. 1
C. 14
D. -15
E. An error at line 3 causes compilation to fail.
F. An error at line 4 causes compilation to fail. 



2*
====

Integer i = new Integer (42);
Long l = new Long (42);
Double d = new Double (42.0); 

Which expressions are valid? (Choose Two) 

A. (i == l)
B. (i == d)
C. (d == l)
D. (i.equals (d))
E. (d.equals (i))
F. (i.equals (42))
G. None


3
====

1.  public class test {    
2.    private static int j = 0;
3.        
4.    private static boolean methodB(int k) {
5.      j += k;
6.      return true;
7.    }
8. 
9.    public static void methodA(int  i) {
10.     boolean b:   
11.     b = i < 10 | methodB (4);
12.     b = i < 10 || methodB (8);
13.   }
14. 
15.   public static void main (String args[]) {
16.     methodA(0);
17.     System.out.println(j);
18.   }
19. } 

What is the result? 

A. The program prints "0"
B. The program prints "4"
C. The program prints "8"
D. The program prints "12"
E. The code does not complete 



4
==== 

1.  public class Test {
2.    public static void main (String args[]) {
3.      System.out.println (6 ^ 3);
4.    }
5.  } 

What is the output? 

Ans: 



5
====

1.  public class Foo {
2.    public static void main (String [] args)  {
3.      StringBuffer a = new StringBuffer ("A");
4.      StringBuffer b = new StringBuffer ("B");
5.      operate (a,b);
6.      system.out.println(a + "," + b);
7.    }
8.    static void operate (StringBuffer x, StringBuffer y)  {
9.      x.append {y};
10.     y = x;
11.   }
12. } 

What is the result? 

A. The code compiles and prints "A,B".
B. The code compiles and prints "A,A".
C. The code compiles and prints "B,B".
D. The code compiles and prints "AB,B".
E. The code compiles and prints "AB,AB".
F. The code does not compile because "+" cannot be overloaded for StringBuffer. 



6
====

1.  public class test {
2.    public static void stringReplace (String text) {
3.      text = text.replace ('j' , 'i');
4.    }
5.  
6.    public static void bufferReplace (StringBuffer text) {
7.       text = text.append ("C");
8.    } 
9.  
10.   public static void main (String args[]) {
11.     String textString = new String ("java");
12.     StringBuffer textBuffer = new StringBuffer ("java");
13.  
14.     stringReplace (textString);
15.     bufferReplace (textBuffer);
16.  
17.     System.out.println (textString + textBuffer);
18.   }
19. } 

What is the output?
Ans: 



7
====

1.  public class test {
2.    public static void add3 (Integer i) {
3.      int val = i.intValue ();
4.      val += 3;
5.      i = new Integer (val);
6.    }
7.  
8.    public static void main (String args [] ) {
9.      Integer  i = new Integer(0);
10.     add3 (i);
11.     System.out.println (i.intValue ());
12.   }
13. } 

What is the result? 

A. Compilation will fail.
B. The program prints "0".
C. The program prints "3".
D. Compilation will succeed but an exception will be thrown at line 3. 



8
====

1.  public class ConstOver {
2.    public ConstOver (int x, int y, int z)  {
3.    }
4.  } 

Which two overload the ConstOver constructor? (Choose Two) 

A. ConstOver ( ) { }
B. protected int ConstOver ( ) { }
C. private ConstOver (int z, int y, byte x) { }
D. public Object ConstOver (int x, int y, int z) { }
E. public void ConstOver (byte x, byte y, byte z) { } 



9
====

1.  public class MethodOver  {
2.    public void setVar (int a, int b, float c)  {
3.    }
4.  } 

Which two overload the setVar method? (Choose Two) 

A. private void setVar (int a, float c, int b)  { }
B. protected void setVar (int a, int b, float c) { }
C. public int setVar (int a, float c, int b) {return a;}
D. public int setVar (int a, int b, float c) {return a;}
E. protected float setVar (int a, int b, float c) {return c;} 



10
==== 

1.  class BaseClass {
2.    private float x = 1.0f ;
3.    protected float getVar ( ) {return x;}
4.  }
5.  class Subclass extends BaseClass {
6.    private float x = 2.0f;
7.    //insert code here
8.  } 

Which two are valid examples of method overriding? (Choose Two) 

A. float getVar ( ) { return x;}
B. public float getVar ( ) { return x;}
C. float double getVar ( ) { return x;}
D. protected float getVar ( ) { return x;}
E. public float getVar (float f ) { return f;} 



11
====
Which two demonstrate an "has a" relationship? 

A. public interface Person { }
   public class Employee extends Person { }

B. public interface Shape { }
   public class Employee extends Shape { }

C. public interface Color { }
   public class Employee extends Color { }

D. public class Species { }
   public class Animal {private Species species;}

E. interface Component { }
   class Container implements Component {
     private Component[] children;
   } 



12
====

Which statement is true? 

A. An anonymous inner class may be declared as final
B. An anonymous inner class can be declared as private
C. An anonymous inner class can implement multiple interfaces
D. An anonymous inner class can access final variables in any enclosing scope
E. Construction of an instance of a static inner class requires an instance of the enclosing outer class. 



13
====

1. package foo;
2.  
3. public class Outer {
4.   public static class Inner {
5.   }
6. }

Which statement is true? 

A. An instance of the Inner class can be constructed with “new Outer.Inner ()”
B. An instance of the inner class cannot be constructed outside of package foo
C. An instance of the inner class can only be constructed from within the outer class
D. From within the package bar, an instance of the inner class can be constructed with “new inner()” 



14
====

1.  public class Enclosingone{
2.    public class Insideone{} 
3.  }
4.  public class Inertest{
5.    public static void main (String[] args){
6.      Enclosingone eo= new Enclosingone(); 
7.      //insert code here
8.    }
9.  } 

Which statement at line 7 constructs an instance of the inner class? 

A. InsideOnew ei= eo.new InsideOn();
B. Eo.InsideOne ei = eo.new InsideOne();
C. InsideOne ei = EnclosingOne.new InsideOne();
D. EnclosingOne.InsideOne ei = eo.new InsideOne(); 



15
====

1.  interface Foo { 
2.    int k = 0; 
3.  } 
4.   
5.  public class Test implements Foo { 
6.    public static void main(String args[]) { 
7.      int i; 
8.      Test test = new test (); 
9.      i = test.k; 
10.     i = Test.k; 
11.     i = Foo.k; 
12.   } 
13. } 
14.

What is the result? 

A. Compilation succeeds.
B. An error at line 2 causes compilation to fail.
C. An error at line 9 causes compilation to fail.
D. An error at line 10 causes compilation to fail.
E. An error at line 11 causes compilation to fail. 


16
====

1.  //point X
2.  public class Foo {
3.    public static void main (String[]args) throws Exception {
4.      PrintWriter out = new PrintWriter (new
5.        java.io.OutputStreamWriter (System.out, true);
6.      out.println(“Hello”);
7.    }
8.  } 

Which statement at PointX on line 1 allows this code to compile and run? 

A. import java.io.PrintWriter;
B. include java.io.PrintWriter;
C. import java.io.OutputStreamWriter;
D. include java.io.OutputStreamWriter;
E. no statement is needed. 



17
====
Which two statements are reserved words in Java? (Choose Two)

A. run
B. import
C. default
D. implement


18
====
Which three are valid declarations of a float? (Choose Three) 

A. float foo = -1;
B. float foo = 1.0;
C. float foo = 42e1;
D. float foo = 2.02f;
E. float foo = 3.03d;
F. float foo = 0x0123; 


19
====

int index = 1;
boolean[] test = new boolean[3];
boolean foo= test [index]; 

What is the result? 

A. foo has the value of 0
B. foo has the value of null
C. foo has the value of true
D. foo has the value of false
E. an exception is thrown
F. the code will not compile 



21
==== 

int index = 1;
int [] foo = new int [3];
int bar = foo [index];
int baz = bar + index; 

What is the result? 

A. baz has the value of 0
B. baz has the value of 1
C. baz has the value of 2
D. an exception is thrown
E. the code will not compile


22
====

1. public class Foo {
2.   public static void main (String[] args) {
3.     String s;
4.     System.out.println ("s=" + s);
5.   }
6. } 

What is the result? 

A. The code compiles and "s=" is printed.
B. The code compiles and "s=null" is printed.
C. The code does not compile because string s is not initialized. 
D. The code does not compile because string s cannot be referenced.
E. The code compiles, but a NullPointerException is thrown when toString is called. 


23
====

Which will declare a method that forces a subclass to implement it? 

A. public double methoda();
B. static void methoda (double d1) {}
C. public native double methoda();
D. abstract public void methoda();
E. protected void methoda (double d1){} 


24
====
You want subclasses in any package to have access to members of a superclass.
Which is the most restrictive access modifier that will accomplish this objective? 

A. public
B. private
C. protected
D. transient
E. No access modifier is qualified


25
====
Given: 

1. abstract class abstrctIt {
2.   abstract float getFloat ();
3. }

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
欧美日韩另类一区| 精品国产乱码久久久久久图片| 日韩电影在线一区二区三区| 久久无码av三级| 欧美三级视频在线观看| 国产电影精品久久禁18| 丝袜亚洲另类丝袜在线| 国产精品免费视频网站| 精品裸体舞一区二区三区| 91麻豆免费视频| 国产精品1区2区3区| 日本成人超碰在线观看| 亚洲欧美另类小说| 国产视频在线观看一区二区三区| 88在线观看91蜜桃国自产| 99热这里都是精品| 粉嫩av一区二区三区| 精品一区二区久久| 日韩高清欧美激情| 亚洲高清免费观看高清完整版在线观看 | 欧美zozo另类异族| 欧美三级电影一区| 日本丶国产丶欧美色综合| 成人激情开心网| 欧美挠脚心视频网站| 日本福利一区二区| 色综合久久中文字幕| a亚洲天堂av| 成人激情视频网站| 成人性视频免费网站| 韩国三级在线一区| 狠狠v欧美v日韩v亚洲ⅴ| 美女精品一区二区| 蜜桃精品视频在线观看| 视频在线在亚洲| 亚洲www啪成人一区二区麻豆| 亚洲摸摸操操av| 亚洲精品成a人| 亚洲黄色小视频| 一区二区三区欧美激情| 亚洲欧美激情一区二区| 一区二区三区在线免费播放| 亚洲精品日日夜夜| 亚洲永久精品大片| 婷婷开心激情综合| 视频一区二区三区入口| 青青国产91久久久久久| 免费不卡在线观看| 国产在线国偷精品免费看| 国产一区二区精品久久91| 国产精品18久久久久久久久| 国产一区二区三区美女| 国产成人亚洲综合a∨婷婷| 高清日韩电视剧大全免费| www.亚洲色图| 欧美熟乱第一页| 日韩欧美综合在线| 国产日韩欧美综合在线| 自拍偷拍欧美精品| 亚洲高清免费一级二级三级| 婷婷中文字幕综合| 国产一区三区三区| 99久久99精品久久久久久| 欧美午夜精品电影| 欧美大黄免费观看| 欧美激情资源网| 一区二区三区高清| 久久精品国产一区二区| 粉嫩嫩av羞羞动漫久久久| 色婷婷国产精品| 日韩亚洲电影在线| 国产精品美女久久久久高潮| 一区二区三区在线播放| 美洲天堂一区二卡三卡四卡视频| 国产一区二区三区精品欧美日韩一区二区三区 | 精品国产在天天线2019| 欧美韩日一区二区三区四区| 亚洲自拍偷拍九九九| 另类小说欧美激情| 99久久国产综合精品色伊| 欧美精品在线观看一区二区| 国产亚洲精品资源在线26u| 亚洲精品高清在线| 国内精品伊人久久久久av一坑| 99精品国产视频| 日韩一区二区三区视频在线观看| 欧美激情一区二区三区不卡| 丝袜美腿亚洲色图| 97久久超碰精品国产| 日韩午夜在线影院| 综合久久久久久| 国产一区啦啦啦在线观看| 欧美亚洲高清一区二区三区不卡| 久久看人人爽人人| 偷窥国产亚洲免费视频| jvid福利写真一区二区三区| 日韩视频永久免费| 一区二区欧美视频| 成人免费av在线| 欧美www视频| 五月天网站亚洲| 色综合久久综合网欧美综合网| 2024国产精品视频| 青青草国产精品亚洲专区无| 91免费版pro下载短视频| 久久你懂得1024| 日本不卡在线视频| 欧美在线色视频| 中文字幕亚洲电影| 国产剧情一区在线| 精品日韩欧美在线| 日韩高清不卡一区| 欧美日韩另类国产亚洲欧美一级| 最新高清无码专区| 粉嫩av一区二区三区粉嫩| 久久综合久久鬼色中文字| 日韩av午夜在线观看| 欧美三级日韩在线| 一二三区精品视频| 色婷婷久久综合| 国产精品美女久久久久aⅴ国产馆| 激情综合网最新| 日韩欧美国产综合一区| 日本成人在线不卡视频| 欧美精品18+| 亚洲444eee在线观看| 欧美主播一区二区三区| 一区二区三区在线视频播放| 91视频在线观看| 亚洲精品中文在线观看| 91麻豆精品在线观看| 亚洲欧洲成人自拍| av电影天堂一区二区在线观看| 国产日韩亚洲欧美综合| 成人永久看片免费视频天堂| 久久伊人中文字幕| 国产高清亚洲一区| 久久综合色婷婷| 国产精品888| 国产精品天天摸av网| 成人不卡免费av| 亚洲色图清纯唯美| 日本精品视频一区二区| 亚洲国产aⅴ天堂久久| 欧美群妇大交群中文字幕| 日韩二区三区在线观看| 欧美成人三级电影在线| 国产在线不卡一区| 国产精品嫩草久久久久| 97久久久精品综合88久久| 亚洲一区影音先锋| 在线电影国产精品| 久久精品99国产国产精| 久久久噜噜噜久噜久久综合| 粉嫩av亚洲一区二区图片| 亚洲视频在线一区观看| 欧美无砖砖区免费| 人妖欧美一区二区| 久久亚区不卡日本| 99久久免费精品| 亚洲va在线va天堂| 久久综合中文字幕| 91麻豆swag| 天堂一区二区在线| 精品国产乱码久久久久久久| 成人深夜视频在线观看| 一区二区国产盗摄色噜噜| 欧美高清你懂得| 国产精品影视在线| 亚洲欧美国产毛片在线| 欧美一区二区三区播放老司机| 国产成人自拍网| 亚洲一区二区三区四区在线| 欧美成人国产一区二区| proumb性欧美在线观看| 天堂一区二区在线| 亚洲国产精品ⅴa在线观看| 欧美在线观看一区二区| 久99久精品视频免费观看| 国产精品久久久久三级| 4438x亚洲最大成人网| 风流少妇一区二区| 亚洲va韩国va欧美va精品| 精品福利一区二区三区 | 成a人片国产精品| 亚欧色一区w666天堂| 国产欧美一区二区三区沐欲 | 99久久99久久免费精品蜜臀| 舔着乳尖日韩一区| 国产精品国产自产拍高清av| 制服丝袜中文字幕一区| 99久久99久久精品免费看蜜桃| 日本vs亚洲vs韩国一区三区| 18成人在线观看| 欧美不卡视频一区| 欧美午夜电影网| aa级大片欧美| 国产乱子轮精品视频| 天天操天天色综合| 亚洲人成7777|