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

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

?? mockcert05.txt

?? 一道JAVA方面的試題 很不錯的 我很喜歡
?? TXT
?? 第 1 頁 / 共 5 頁
字號:


Question 30
===========================================================
Consider the code fragment below:


outer: for( int i = 1; i <3; i++ )
   {  inner: for( j = 1; j < 3; j++ )
      {  if( j==2 )
            continue outer;
            System.out.println( "i = " +i ", j = " + j );
      }
   }	

Which of the following would be printed to standard output?

Mutiple: ________________
1) i = 1, j = 1
2) i = 1, j = 2
3) i = 1, j = 3
4) i = 2, j = 1
5) i = 2, j = 2


Question 31
===========================================================
Consider the code below:

void myMethod() 
{  try 
   {  
      fragile();
   }
   catch( NullPointerException npex ) 
   {  
      System.out.println( "NullPointerException thrown " );
   }
   catch( Exception ex ) 
      {  
         System.out.println( "Exception thrown " );
      }
   finally 
   {  
      System.out.println( "Done with exceptions " ); 
   }
   System.out.println( "myMethod is done" );
}
What is printed to standard output if fragile() throws an IllegalArgumentException?

Mutiple: ________________
1) "NullPointerException thrown"
2) "Exception thrown"
3) "Done with exceptions"
4) "myMethod is done"
5) Nothing is printed


Question 32
===========================================================
Consider the following code sample:

class Tree{}
class Pine extends Tree{}
class Oak extends Tree{}
public class Forest 
{  public static void main( String[] args ) 
   {  Tree tree = new Pine();

      if( tree instanceof Pine )
      System.out.println( "Pine" );

      if( tree instanceof Tree )
      System.out.println( "Tree" );

      if( tree instanceof Oak )
      System.out.println( "Oak" );

      else System.out.println( "Oops" );
   }
}

Select all choices that will be printed:

Mutiple: ________________
1) Pine
2) Tree
3) Forest
4) Oops
5) (nothing printed)


Question 33
===========================================================
Consider the classes defined below:

import java.io.*;
class Super 
{
	int methodOne( int a, long b ) throws IOException 
	{ // code that performs some calculations
    }
	float methodTwo( char a, int b )
	{ // code that performs other calculations
    }
}
public class Sub extends Super
{

}
Which of the following are legal method declarations to add to the class Sub? Assume that each method is the only one being added.

Mutiple: ________________
1) public static void main( String args[] ){}
2) float methodTwo(){}
3) long methodOne( int c, long d ){}
4) int methodOne( int c, long d ) throws ArithmeticException{}
5) int methodOne( int c, long d ) throws FileNotFoundException{}


Question 34
===========================================================
Assume that Sub1 and Sub2 are both subclasses of class Super.

Given the declarations:

Super super = new Super();
Sub1 sub1 = new Sub1();
Sub2 sub2 = new Sub2(); 

Which statement best describes the result of attempting to compile and execute the following statement:

super = sub1;

Only One: _______
1) Compiles and definitely legal at runtime
2) Does not compile
3) Compiles and may be illegal at runtime


Question 35
===========================================================
For the following code:

class Super 
{  int index = 5;
   public void printVal() 
      {  System.out.println( "Super" );
      }
}
class Sub extends Super
{  int index = 2;
   public void printVal() 
   {  System.out.println( "Sub" );
   }
}
public class Runner 
{  public static void main( String argv[] ) 
   {  Super sup = new Sub();
      System.out.print( sup.index + "," );
      sup.printVal();
   }
}
What will be printed to standard output?

Only One: _______
1) The code will not compile
2) The code compiles and "5, Super" is printed to standard output.
3) The code compiles and "5, Sub" is printed to standard output.
4) The code compiles and "2, Super" is printed to standard output.
5) The code compiles and "2, Sub" is printed to standard output.


Question 36
===========================================================
How many objects are eligible for garbage collection once execution has reached the line labeled Line A?

String name;
String newName = "Nick";
newName = "Jason";
name = "Frieda";

String newestName = name;

name = null;
//Line A

Only One: _______
1) 0
2) 1
3) 2
4) 3
5) 4


Question 37
===========================================================
Which of the following statements about Java's garbage collection are true?

Mutiple: ________________
1) The garbage collector can be invoked explicitly using a Runtime object.
2) The finalize method is always called before an object is garbage collected.
3) Any class that includes a finalize method should invoke its superclass' finalize method.
4) Garbage collection behavior is very predictable.


Question 38
===========================================================
Which of the following statements about event handling in JDK 1.1 and later are true?

Mutiple: ________________
1) A class can implement multiple listener interfaces
2) If a class implements a listener interface, it only has to overload the methods it uses
3) All of the MouseMotionAdapter class methods have a void return type.


Question 39
===========================================================
Which methods are required to implement the interface Runnable.

Mutiple: ________________
1) wait()
2) run()
3) stop()
4) update()
5) resume()


Question 40
===========================================================
A component that should resize vertically but not horizontally should be placed in a:

Mutiple: ________________
1) BorderLayout in the North or South location
2) FlowLayout as the first component
3) BorderLayout in the East or West location
4) BorderLayout in the Center location
5) GridLayout


Question 41
===========================================================
For what reasons might a thread stop execution?

Mutiple: ________________
1) A thread with higher priority began execution.
2) The thread's wait() method was invoked.
3) The thread invoked its yield() method.
4) The thread's pause() method was invoked.
5) The thread's sleep() method was invoked.


Question 42
===========================================================
Which method below can change a String object, s ?

Mutiple: ________________
1) equals( s )
2) substring( s )
3) concat( s )
4) toUpperCase( s )
5) none of the above will change s


Question 43
===========================================================
If s1 is declared as: 

String s1 = "phenobarbital";

What will be the value of s2 after the following line of code: 

String s2 = s1.substring( 3, 5 );

Only One: _______
1) null
2) "eno"
3) "enoba"
4) "no"


Question 44
===========================================================
What method(s) from the java.lang.Math class might method() be if the statement

method( -4.4 ) == -4;

is true.

Mutiple: ________________
1) round()
2) min()
3) trunc()
4) abs()
5) ceil()


Question 45
===========================================================
Which methods does java.lang.Math include for trigonometric computations?

Mutiple: ________________
1) sin()
2) cos()
3) tan()
4) aSin()
5) aCos()


Question 46
===========================================================
This piece of code:

TextArea ta = new TextArea( 10, 3 );

Produces (select all correct statements):

Mutiple: ________________
1) a TextArea with 10 rows and up to 3 columns
2) a TextArea with a variable number of columns not less than 10 and 3 rows
3) a TextArea that may not contain more than 30 characters
4) a TextArea that can be edited


Question 47
===========================================================
In the list below, which subclass(es) of Component cannot be directly instantiated:

Mutiple: ________________
1) Panel
2) Dialog
3) Container
4) Frame


Question 48
===========================================================
Of the five Component methods listed below, only one is also a method of the class MenuItem. Which one?

Only One: _______
1) setVisible( boolean b )
2) setEnabled( boolean b )
3) getSize()
4) setForeground( Color c )
5) setBackground( Color c )


Question 49
===========================================================
If a font with variable width is used to construct the string text for a column, the initial size of the column is:

Only One: _______
1) determined by the number of characters in the string, multiplied by the width of a character in this font
2) determined by the number of characters in the string, multiplied by the average width of a character in this font
3) exclusively determined by the number of characters in the string
4) undetermined


Question 50
===========================================================
Which of the following methods from the java.awt.Graphics class would be used to draw the outline of a rectangle with a single method call?

Mutiple: ________________
1) fillRect()
2) drawRect()
3) fillPolygon()
4) drawPolygon()
5) drawLine()


Question 51
===========================================================
The Container methods add( Component comp ) and add( String name, Component comp ) will throw an IllegalArgumentException if comp is a:

Mutiple: ________________
1) button
2) list
3) window
4) textarea
5) container that contains this container


Question 52
===========================================================
Of the following AWT classes, which one(s) are responsible for implementing the components layout?

Mutiple: ________________
1) LayoutManager
2) GridBagLayout
3) ActionListener
4) WindowAdapter
5) FlowLayout


Question 53
===========================================================
Which of the following are valid ways to define an octal literal of value 17 (octal).

Mutiple: ________________
1) private final int theNumber = 0x17;
2) private final int theNumber = 017;
3) public int theNumber = 017;
4) public int theNumber = (octal)17;
5) public int THE_NUMBER = 017;


Question 54
===========================================================
Consider the following piece of code and select all statements which yield a boolean value of true as a result.



     Double d1=new Double(10.0);

     Double d2=new Double(10.0);

     int x=10;

     float f=10.0

Mutiple: ________________
1) d1 == d2;
2) d1 == x;
3) f == x;
4) d1.equals(d2);
5) None of the above


Question 55
===========================================================
Given the following definition:

      String s = null;


Which code fragment will cause an exception of type NullPointerException to be thrown.

Mutiple: ________________
1) if ((s != null) & (s.length()>0))
2) if ((s != null) && (s.length()>0))
3) if ((s != null) | (s.length()>0))
4) if ((s != null) || (s.length()>0))
5) None of the above.


Question 56
===========================================================
Which of the following are valid declarations for a 2x2 array of integers.

Mutiple: ________________
1) int a[][] = new int[10,10];
2) int a[][] = new int [10][10];
3) int a[10,10] = new int [10][10];
4) int [][]a = new int [10][10];
5) int []a[] = new int [10][10];


Question 57
===========================================================
Which values of variable x will show "Message 2".


     switch(x)

     {

          case 1 :

               System.out.println("Message 1");

          case 2 :

          case 3 :

               System.out.println("Message 2");

          default :

               System.out.println("End");

     }

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
一区二区三区在线视频观看58| 美女精品自拍一二三四| 一区二区三国产精华液| 美女尤物国产一区| 色综合久久88色综合天天免费| 日韩午夜电影av| 一区二区三区四区在线播放| 精品一区二区影视| 欧美人动与zoxxxx乱| 亚洲三级在线免费观看| 国产一区二区毛片| 在线不卡一区二区| 一区二区三区日韩| 9i在线看片成人免费| 国产校园另类小说区| 蜜桃av噜噜一区二区三区小说| 色综合久久88色综合天天| 日本一区二区免费在线| 麻豆精品国产91久久久久久| 欧美性一区二区| 一区二区中文视频| 成人免费视频视频| 国产日产精品1区| a级精品国产片在线观看| 日韩美一区二区三区| 午夜一区二区三区在线观看| 色婷婷亚洲一区二区三区| 国产婷婷色一区二区三区| 精品影院一区二区久久久| 日韩欧美一区二区视频| 日韩av不卡一区二区| 欧美午夜电影一区| 亚洲自拍偷拍九九九| 色婷婷av久久久久久久| 亚洲视频一二三| 色综合天天综合色综合av| 国产精品乱码一区二区三区软件 | 精品剧情v国产在线观看在线| 一区二区三区在线影院| thepron国产精品| 国产精品理论片| 99精品视频中文字幕| 国产日韩欧美在线一区| 国产99精品在线观看| 欧美激情在线一区二区| 成人激情图片网| 国产精品久久久久久久久搜平片| 成人听书哪个软件好| 一区免费观看视频| 色婷婷av一区二区三区gif | 日本黄色一区二区| 亚洲一二三四在线| 欧美日韩精品欧美日韩精品一 | 亚洲色图在线看| 一本大道久久a久久综合 | 国产日韩欧美亚洲| 成人午夜电影网站| 伊人性伊人情综合网| 欧美日韩另类一区| 久久99这里只有精品| 久久久久久久久久久久电影| 99久久久久免费精品国产 | 欧洲中文字幕精品| 日韩激情视频网站| 欧美国产一区二区在线观看| 色婷婷狠狠综合| 蜜臀av一区二区在线观看| 国产日韩欧美在线一区| 欧美性猛片xxxx免费看久爱| 热久久一区二区| 国产精品丝袜久久久久久app| 在线观看av一区| 久久不见久久见免费视频1| 国产精品美女一区二区在线观看| 在线免费观看日本一区| 国内一区二区在线| 中文字幕一区二区在线观看 | 日韩欧美色综合网站| 成人免费av在线| 日本美女一区二区三区| 国产精品进线69影院| 4438成人网| 91在线观看成人| 免费黄网站欧美| 亚洲女同一区二区| 久久久av毛片精品| 欧美日韩亚洲国产综合| 成人网在线免费视频| 免费高清不卡av| 亚洲精品国产视频| 国产午夜亚洲精品羞羞网站| 欧美狂野另类xxxxoooo| 成人美女在线视频| 国产乱人伦偷精品视频免下载| 亚洲国产中文字幕| |精品福利一区二区三区| 精品国产一区二区亚洲人成毛片 | 欧美蜜桃一区二区三区| 91免费国产视频网站| 国产999精品久久| 美国一区二区三区在线播放| 亚洲国产一区二区三区| 日韩码欧中文字| 国产欧美一区二区精品性色超碰| 欧美精品v日韩精品v韩国精品v| 91首页免费视频| 成人久久视频在线观看| 国产一区不卡精品| 老司机一区二区| 免费高清在线一区| 天堂影院一区二区| 一卡二卡欧美日韩| 一区二区三区不卡视频在线观看| 国产精品天干天干在线综合| 欧美国产欧美亚州国产日韩mv天天看完整| 欧美日韩一区三区四区| 欧美性受xxxx| 欧美精品v国产精品v日韩精品| 欧美日韩你懂得| 欧美日韩国产片| 6080日韩午夜伦伦午夜伦| 欧美精品一二三区| 91精品国产全国免费观看 | 成人av电影在线播放| 成人性生交大片免费| 成人av免费在线观看| 91麻豆福利精品推荐| 色综合久久久久| 欧美日韩一区二区不卡| 欧美日韩和欧美的一区二区| 91麻豆精品久久久久蜜臀| 欧美一区二区三区在线观看视频| 日韩欧美一级精品久久| 久久午夜免费电影| 亚洲国产精品精华液ab| 亚洲图片激情小说| 亚洲国产精品精华液网站| 日韩激情中文字幕| 国产自产视频一区二区三区| 懂色av一区二区在线播放| 91免费观看视频在线| 欧美人体做爰大胆视频| 精品国产髙清在线看国产毛片| 久久久久久久久久久久久久久99 | 日韩欧美二区三区| 久久久www免费人成精品| 亚洲色图清纯唯美| 婷婷亚洲久悠悠色悠在线播放| 久久99深爱久久99精品| 高清国产午夜精品久久久久久| 一本到高清视频免费精品| 欧美一区二区性放荡片| 国产性色一区二区| 亚洲电影中文字幕在线观看| 国内外成人在线| 色综合天天综合色综合av| 欧美一区二区私人影院日本| 国产精品第五页| 丝袜诱惑亚洲看片| 成人美女视频在线看| 91精品国产欧美日韩| 国产精品系列在线| 免费xxxx性欧美18vr| 99在线精品一区二区三区| 欧美精品日日鲁夜夜添| 中文字幕高清不卡| 日韩av电影一区| a4yy欧美一区二区三区| 精品美女在线观看| 亚洲国产va精品久久久不卡综合| 国产精品一区一区三区| 欧美一区二区视频在线观看| 亚洲欧美日韩一区二区| 国产二区国产一区在线观看| 91精品欧美综合在线观看最新| 亚洲视频 欧洲视频| 国产一区二区福利| 欧美一区二区三区免费在线看| 中文字幕亚洲一区二区av在线| 极品美女销魂一区二区三区免费| 在线视频你懂得一区| 国产精品成人一区二区三区夜夜夜| 美女视频网站黄色亚洲| 欧美性大战久久久| 亚洲男同性恋视频| 成人app软件下载大全免费| 久久久久久久久久久久电影| 久久精品二区亚洲w码| 欧美女孩性生活视频| 亚洲午夜视频在线| 91同城在线观看| 国产精品色在线| 国产一区二区三区国产| 精品日韩欧美一区二区| 久久精品国产网站| 日韩一区二区不卡| 日本欧美肥老太交大片| 制服丝袜亚洲播放| 奇米色一区二区三区四区| 欧美色电影在线|