不定项选择题下列术语______是Java关键字。 A.goto B.null C.FALSE D.native E.const
不定项选择题给出以下关于一个使用适当的字符间距的字体的TextField的表达式。 TextField t = new TextField(they are good,40); 叙述正确的是______。 A.被显示的字符串可以使用多种字体 B.一行中最大的字符数是40 C.显示的宽度正好是40个字符宽 D.用户可以编辑字符
不定项选择题类的设计要求它的某个成员变量不能被外部类直接访问。应该使用下面的______修饰符获得需要的访问控制。 A.public B.no modifier C.protected D.private
不定项选择题Given the following code: if (x>0) { System.out.println(first); } else if (x>-3) { System.out.println(second); } else { System.out.println(third); } Which range of x value would print the string second? A.x>0 B.x>-3 C.x<=-3 D.x<=0x>-3
不定项选择题当Frame的大小被改变时,Frame中的按钮位置可能被改变时,使用的是______布局管理器。 A.BorderLayout B.FlowLayout C.CardLayout D.GridLayout
不定项选择题Given the uncompleted code of a class: class Person { String name, department; int age; public Person(String n) { name = n; } public Person(String n, int a){ name = n; age = a; } public Person(String n, String d, int a) { // doing the same as two arguments version of constructor // including assignment name=n,age=a department = d; } } Which expression can be added at the doing the same as… part of the constructor? A.Person(n,a); B.this(Person(n,a)); C.this(n,a); D.this(name,age);
不定项选择题下面的有关声明的叙述中正确的是______。 A.对原始数据类型例如boolean,byte的变量的声明不会为该变量分配内存空间 B.对原始数据类型例如boolean,byte的变量的声明将为之分配内存空间 C.非原始数据类型例如String,Vector的变量的声明不会为该对象分配内存 D.非原始数据类型例如String,Vector的变量的声明会为该对象分配内存
不定项选择题给出下面的代码: if (x>0) {System.out.println(first); } else if (x>-3) { System.out.println(second);} else{ System.out.println(third);} x的取值在______范围内时将打印字符串second。 A.x>0 B.x>-3 C.x<=-3 D.x<=0x>-3
不定项选择题Given the following code: public class Test { void printValue(int m) { do { System.out.println(The value is+m); } while( --m >10 ) } public static void main(String arg[]) { int i=10; Test t= new Test (); t.printValue(i) ; } } Which will be output? A.The value is 8 B.The value is 9 C.The value is 10 D.The value is 11
不定项选择题给出下面的代码: 1)public class Test { 2)int m, n; 3)public Test() () 4)public Test(int a) {m=a; } 5)public static void main(string arg[]) { 6)Test t1,t2; 7)int j,k; 8)j=O; k=0; 9)t1=rlew Test(); 10)t2=new Test(j,k); 11)} 12)} 在编译时行将导致一个错误。 A.3 B.5 C.6 D.10
不定项选择题字符的表达范围是______。 A.27~27-1 B.0~216-1 C.0~216 D.0~28
不定项选择题加工斜线OA,设起点O为切割坐标原点,终点A的坐标为Xa=17mm,Ya=5mm,其加工程序为( )。 A.B17 B5 B17 Gx L1 B.B17000 B5000 B17000 Gx L1 C.B17000 B5000 B17000 Gy L1 D.B17000 B5000 B5000 Gy L1 E.B17 B5 B17000 Gx L1
不定项选择题Which keyword should be used to enable interaction with the lock of an object? The flagallows exclusive access to that object. A.transient B.synchronized C.serialize D.static
不定项选择题Which are not Java primitive types? A.short B.Boolean C.unit D.float
不定项选择题下面叙述为真的是______。 A.equals()方法判定引用值是否指向同一对象 B.==操作符判定两个分立的对象的内容和类型是否一致 C.equals()方法只有在两个对象的内容一致时返回true D.类File重写方法equals()在两个分立的对象的内容和类型一致时返回true
不定项选择题Given the following code: public void test() { try { oneMethod() ; System. out.println(condition 1) ; } catch (ArrayIndexOutOfBoundsException e) { System.out.println(condition 2) ; } catch (Exception e) { System. out.println(condition 3) ; } finally { System. out.println(finally) ; } } Which will display if oneMethod run normally? A.condition 1 B.condition 2 C.condition 3 D.finally
不定项选择题对于线切割加工,下列说法正确的有( )。 A.线切割加工圆弧时,其运动轨迹是折线 B.线切割加工斜线时,其运动轨迹是斜线 C.加工斜线时,取加工的终点为编程坐标系的原点 D.加工圆弧时,取圆心为编程坐标系的原点
不定项选择题加工半圆AB,切割方向从A到B,起点坐标A(-5,0),终点坐标B(5,0),其加工程序为( )。 A.B5000 B B10000 Gx SR3 B.B5000 B B10000 Gy SR3 C.B5000 B B1000 Gy SR3 D.B B5000 B1000 Gy SR3 E.B5 B B10000 Gy SR3
不定项选择题已知String s=Example String; 下列表达式合法的是______。 A.s>>>=3; B.int i=s.length(); C.s[3]=X; D.String short_s=s.trim(); E.String t=roots;
不定项选择题有以下程序: public void test() { try { oneMethod(); System.out.println(condition 1); } catch (ArrayIn(JexOutOfBoundsException e) { System.out.println(condition 2); } catch(Exception e) { System.out.println(condition 3); } finally { System.out.printIn(finally); } } 在oneMethod()方法运行正常的情况下将显示______。 A.Condition 1 B.condition 2 C.condition 3 D.finally
