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

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

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

?? SCJD經典147題庫修正版(SCJP考生必做)
?? TXT
?? 第 1 頁 / 共 2 頁
字號:
4. public class AbstractTest extends AbstractIt {
5.   private float f1 = 1.0f;
6.   private float getFloat () {return f1;}
7. } 

What is the result? 

A. Compilation is successful.
B. An error on line 6 causes a runtime failure.
C. An error at line 6 causes compilation to fail.
D. An error at line 2 causes compilation to fail. 


26
====

1.  public class Test {
2.    public int aMethod() {
3.      static int i=0; 
4.      i++;
5.      return i; 
6.    }

7.    public static void main (String args[]) {
8.      Test test = new Test();
9.      test.aMethod();
10.     int j = test.aMethod();
11.     System.out.println(j);
12.   }
13. }     

What is the result? 

A. Compilation will fail.
B. Compilation will succeed and the program will print "0".
C. Compilation will succeed and the program will print "1".
D. Compilation will succeed and the program will print "2". 


27
====
Given: 

1. class super {
2.   public float getNum() {return 3.0f;}
3. }
4.  
5. public class Sub extends Super {
6.  
7. } 

Which method, placed at line 6, will cause a compiler error? 

A. public float getNum()   {return 4.0f; }
B. public void getNum ()  { }
C. public void getNum (double d)   { }
D. public double getNum (float d) {retrun 4.0f; }


28
====
Which declaration prevents creating a subclass of an outer class? 

A. static class FooBar{}
B. private class FooBar{}
C. abstract public class FooBar{}
D. final public class FooBar{}
E. final abstract class FooBar{} 


29
====
Given: 

1. byte [] arry1, array2[];
2. byte array3 [][];
3. byte[][] array4; 

If each array has been initialized, which statement will cause a compiler error? 

A. array2 = array1;
B. array2 = array3;
C. array2 = array4;
D. both A and B
E. both A and C
F. both B and C 


30
====
Given: 

1.  class Super { 
2.    public int i = 0; 
3.   
4.    public Super (String text) {
5.      i = 1;
6.    }
7.  }
8.
9.  public class Sub extends Super {
10.   public Sub (String text) {
11.     i = 2;
12.   }
13. 
14.   public static void main (String args[]) {
15.     Sub sub = new Sub ("Hello");
16.     System.out.println(sub.i);
17.   }
18. } 

What is the result?
A. Compilation will fail.
B. Compilation will succeed and the program will print "0".
C. Compilation will succeed and the program will print "1".
D. Compilation will succeed and the program will print "2". 


31
====
Given: 

1. public class ReturnIt {
2.   returnType methodA(byte x, double y) {
3.     return (short) x/y * 2;
4.   }
5. } 

What is the valid returnType for methodA in line 2? 

A. int
B. byte
C. long
D. short
E. float
F. double


41
====
Given: 

1. public class X {
2.   public Object m ()  {
3.     Object o = new Float (3.14F);
4.     Object [] oa = new Object [1];
5.     oa[0]= o;
6.     o = null;
7.     return oa[0];
8.   }
9. } 

When is the float object created in line 3, eligible for garbage collection? 

A. Just after line 5
B. Just after line 6
C. Just after line 7 (that is, as the method returns)
D. Never in this method 


42
====
Given: 

3. String foo = "ABCDE";
4. Foo.substring(3);
5. Foo.concat("XYZ");   
6.

Type the value of foo at line 6. 

Ans: 


43
====
Which method is an appropriate way to determine the cosine of 42 degrees? 

A. double d = Math.cos(42);
B. double d = Math.cosine(42);
C. double d = Math.cos(Math.toRadians(42));
D. double d = Math.cos(Math.toDegrees(42));
E. double d = Math.cosine(Math.toRadians(42)); 


44
====
You need to store elements in a collection that guarantees that no
duplicates are stored and all elements can be accessed in natural order.
Which interface provides that capability? 

A. java.util.Map
B. java.util.Set
C. java.util.List
D. java.util.StoredSet
E. java.util.StoredMap
F. java.util.Collection 


45
====
Which statement is true for the class java.util.HashSet? 

A. The elements in the collection are ordered.
B. The collection is guaranteed to be immutable.
C. The elements in the collection are guaranteed to be unique.
D. The elements in the collection are accessed using a unique key. 
E. The elements in the collections are guaranteed to be synchronized. 


46
====
Given: 

1.  public class IfTest {
2.    public static void main(String[] args) {
3.      int x = 3;
4.      int y = 1;
5.      if (x = y)
6.        System.out.println("Not equal");
7.      else
8.        System.out.println("Equal");
9.    }
10. } 

What is the result?
   
A. The output is "Equal".
B. The output in "Not Equal".
C. An error at line 5 causes compilation to fall.
D. The program executes but does not print a message. 


47
====
1. public class Test {
2.   public static void main(String args[]) { 
3.     int i = 0;
4.     while (i)  {
5.       if (i==4) { 
6.         break; 
7.       }
8.       ++i; 
9.     }
10.
11.  }
12.} 

What is the value of i at line 10? 

A. 0
B. 3
C. 4
D. 5
E. the code will not compile


48
====
Given: 

3. int i = 1, j = 10 ;
4. do {
5.   if (i++ > --j) continue;
6. } while (i<5); 

After execution, what are the values for i and j? 

A. i = 6 and j= 5
B. i = 5 and j= 5
C. i = 6 and j= 4
D. i = 5 and j= 6
E. i = 6 and j= 6 


49
====
Given: 

1. switch (i)  {
2.   default:
3.      System.out.println("Hello");
4. ) 

What are the two acceptable types for the variable i? (Choose Two) 

A. char
B. byte
C. float
D. double
E. Object


50
====
Given: 

1. public class Foo {
2.   public static void main (String[] args){
3.     try {return;}
4.     finally {System.out.println("Finally");}
5.   }
6. } 

What is the result? 

A. The program runs and prints nothing.
B. The program runs and prints "Finally".
C. The code compiles, but an exception is thrown at runtime.
D. The code will not compile because the catch block is missing. 


51
====
1. import java.io.IOException;

2. public class ExceptionTest{
3.   public static void main (String[] args)
4.     try {
5.       methodA();
6.     } catch (IOException e) {
7.       System.out.println("Caught IOException"); 
8.     } catch (Exception e) {
9.       System.out.println("Caught Exception"); 
10.    }
11.  }

12.  public void methodA () {
13.    throw new IOException (); 
14.  }
15.} 

What is the result?

A. The code will not compile.
B. The output is caught exception.
C. The output is caught IOException.
D. The program executes normally without printing a message. 



52
====
1.  public class Test {
2.    public static String output = "";
3.
4.    public static void foo(int i) {
5.      try {
6.        if(i == 1) {
7.          throw new Exception ();
8.        } 
9.        output += "1";
10.     }
11.     catch(Exception e)  {
12.       output += "2";
13.         return; 
14.     }
15.     finally {
16.       output += "3";
17.     }
18.     output += "4";
19.   }
20.
21.   public static void main (String args[])  {
22.     foo(0);
23.     foo(1);
24.
25.   }
26. } 

What is the value of the variable output at line 24? 

Ans: 


53
====
Given: 

1. public class Foo implements Runnable {
2.   public void run (Thread t) {
3.     System.out.println("Running.");
4.   }

5.   public static void main (String[] args)  {
6.     new Thread (new Foo()).start();
7.   }
8. } 

What is the result?

A. An exception is thrown 
B. The program exists without printing anything
C. An error at line 1 causes compilation to fail. 
D. An error at line 2 causes the compilation to fail.     
E. "Running" is printed and the program exits 



54
====
Which statement is true? 

A. If only one thread is blocked in the wait method of an object, 
   and another thread executes the modify on that same object, 
   then the first thread immediately resumes execution. 

B. If a thread is blocked in the wait method of an object,
   and another thread executes the notify method on the same object,
   it is still possible that the first thread might never resume execution. 

C. If a thread is blocked in the wait method of an object,
   and another thread executes the notify method on the same object,
   then the first thread definitely resumes execution as a direct and sole consequence of the notify call. 

D. If two threads are blocked in the wait method of one object,
   and another thread executes the notify method on the same object,
   then the first thread that executed the wait call first definitely resumes execution as a direct
   and sole consequence of the notify call. 



55
====
Which two CANNOT directly cause a thread to stop executing? (Choose Two) 

A. Calling the yield method
B. Calling the wait method on an object
C. Calling the notify method on an object
D. Calling the NotifyAll method on an object
E. Calling the start method on another Thread object 


56
====
Which two can be used to create a new Thread? (Choose Two) 

A. Extend java.lang.Thread and override the run method.
B. Extend java.lang.Runnable and override the start method.
C. Implement java.lang.Thread and implement the run method. 
D. Implement java.lang.Runnable and implement the run method.     
E. Implement java.lang.Thread and implement the start method. 



57
====
Given: 

1. public class SyncTest {
2.   private int x;
3.   private int y;
4.   private synchronized void setX (int i) {x=1;}
5.   private synchronized void setY (int i) {y=1;}
6.   public void setXY(int i){setX(i); setY(i);}
7.   public synchronized boolean check() {return x != y;}
8. } 

Under which conditions will check () return true when

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国产精品萝li| 久久这里只精品最新地址| 亚洲婷婷在线视频| 99久久婷婷国产综合精品电影| 中文字幕av不卡| 91在线播放网址| 一区二区欧美在线观看| 欧美人体做爰大胆视频| 美女在线观看视频一区二区| 日韩欧美成人午夜| 丁香另类激情小说| 一级精品视频在线观看宜春院| 欧美色网站导航| 狠狠色丁香婷婷综合| 欧美激情在线一区二区| 日本精品一区二区三区高清 | 亚洲一区二区三区四区不卡| 欧美日韩久久久一区| 久久黄色级2电影| 中文字幕 久热精品 视频在线| 91丨porny丨最新| 日产国产高清一区二区三区| 久久久久久久久久电影| 91小视频免费看| 日韩电影在线观看电影| 国产精品视频一二三| 欧美日韩国产综合一区二区| 国产一本一道久久香蕉| 一区二区不卡在线视频 午夜欧美不卡在| 欧美日韩视频在线一区二区| 国产麻豆成人传媒免费观看| 亚洲一区二区综合| 久久精品视频网| 精品视频在线看| 国产成人自拍网| 丝袜美腿成人在线| 国产精品国产三级国产专播品爱网 | 久久狠狠亚洲综合| 亚洲欧美一区二区久久| 日韩欧美激情四射| 色噜噜狠狠色综合欧洲selulu| 极品少妇xxxx精品少妇| 亚洲在线观看免费| 国产精品美女久久久久aⅴ| 欧美一区国产二区| av在线不卡网| 国产精品一区二区不卡| 日韩成人免费在线| 一区二区三区蜜桃| 中文字幕在线不卡视频| 欧美大片顶级少妇| 欧美一区永久视频免费观看| 色综合网色综合| 国产精品1024| 激情久久五月天| 日本午夜精品一区二区三区电影| 亚洲精品欧美综合四区| 国产精品国产三级国产| 久久久久成人黄色影片| 337p粉嫩大胆噜噜噜噜噜91av| 欧美日韩一区二区三区四区| 色又黄又爽网站www久久| 国产福利一区二区三区视频| 久久er精品视频| 日韩福利电影在线| 首页综合国产亚洲丝袜| 亚洲午夜电影网| 一区二区成人在线| 亚洲免费观看视频| 亚洲人成网站色在线观看| 欧美国产日韩亚洲一区| 国产日韩一级二级三级| 精品粉嫩超白一线天av| 日韩天堂在线观看| 日韩亚洲欧美一区二区三区| 91精品国产综合久久精品性色| 欧美顶级少妇做爰| 欧美高清视频在线高清观看mv色露露十八 | 色94色欧美sute亚洲线路一ni | 亚洲亚洲人成综合网络| 亚洲一区二区三区四区在线免费观看 | 日本韩国一区二区| 日本丶国产丶欧美色综合| 99久久久无码国产精品| 色哟哟一区二区三区| 色综合色综合色综合| 在线视频欧美精品| 欧美精品高清视频| 欧美三级中文字| 欧美一区二视频| 精品国产在天天线2019| 欧美精彩视频一区二区三区| 国产精品理伦片| 一区二区三区在线观看网站| 午夜亚洲国产au精品一区二区| 日本伊人色综合网| 经典三级视频一区| 99国产精品久久久久久久久久 | 国产91精品免费| 91麻豆视频网站| 欧美美女黄视频| 精品三级在线看| 国产精品久久精品日日| 亚洲一级二级三级在线免费观看| 日韩成人免费在线| 高清beeg欧美| 欧美日韩一区二区三区不卡| 欧美一卡二卡在线| 国产欧美日韩三级| 亚洲国产视频a| 国产一区福利在线| 欧洲国内综合视频| 亚洲精品一区二区三区精华液| 亚洲图片激情小说| 久久机这里只有精品| 91老司机福利 在线| 91精品欧美一区二区三区综合在 | 久久精品国产一区二区| 成人h动漫精品一区二| 欧美男女性生活在线直播观看 | 中文字幕va一区二区三区| 亚洲一区在线视频观看| 国产伦精品一区二区三区免费迷| 色综合天天综合网天天狠天天| 日韩亚洲国产中文字幕欧美| 国产精品久久久久久久蜜臀| 日本欧美一区二区在线观看| av一区二区三区四区| 日韩女优av电影| 亚洲自拍偷拍综合| 国产成人av影院| 91精品国产手机| 一区二区三区四区高清精品免费观看 | 欧美久久一二区| 亚洲欧洲精品天堂一级| 日本怡春院一区二区| 色先锋久久av资源部| 国产亚洲美州欧州综合国| 亚洲第一二三四区| 91麻豆自制传媒国产之光| 久久久久久影视| 蜜臀av在线播放一区二区三区| 一本色道综合亚洲| 中文字幕国产一区| 国产综合久久久久影院| 欧美精品v日韩精品v韩国精品v| 中文字幕亚洲精品在线观看| 国产精品1区2区3区| 精品久久免费看| 日韩电影在线一区二区| 欧美色偷偷大香| 一区二区三区美女| 91在线视频观看| 中文字幕乱码日本亚洲一区二区| 精品一区二区三区在线观看国产| 欧美一区二区啪啪| 婷婷丁香久久五月婷婷| 色视频一区二区| 亚洲欧美日韩中文字幕一区二区三区 | 久久精品国产秦先生| 欧美一区二区日韩一区二区| 婷婷综合五月天| 欧美日韩久久不卡| 亚洲成人资源网| 欧美日韩大陆一区二区| 亚洲一区二区三区视频在线播放| 99国产精品一区| 亚洲欧美日韩小说| 在线视频综合导航| 夜夜爽夜夜爽精品视频| 欧美亚洲动漫制服丝袜| 亚洲一区二区三区在线看| 欧美影院午夜播放| 日日夜夜一区二区| 日韩午夜在线影院| 韩国一区二区在线观看| 久久久久久**毛片大全| 国产成人午夜99999| 国产精品第一页第二页第三页| av动漫一区二区| 一级中文字幕一区二区| 欧美精品久久久久久久久老牛影院| 亚洲高清视频的网址| 日韩欧美美女一区二区三区| 韩国v欧美v亚洲v日本v| 国产精品欧美久久久久一区二区| 99亚偷拍自图区亚洲| 一区二区三区四区不卡在线| 欧美高清视频www夜色资源网| 免费高清成人在线| 欧美经典三级视频一区二区三区| 成人av动漫网站| 亚洲chinese男男1069| 日韩午夜精品视频| 成人av影院在线| 亚洲一区二区在线免费观看视频| 日韩视频123| av电影在线观看不卡| 亚洲国产精品一区二区久久| 精品国产3级a|