下面的语句会产生什么样的输出?  A
System.out.println(4&7);
  A.4
  B.5
  C.6
  D.7
  E.0

下面的程序中,temp的最终值是什么?  B
long temp=(int)3.9;
temp%=2;
  A .0
  B .1
  C .2
  D .3
  E .4

下面哪个不是JAVA关键字  A
  A  integer
  B  double
  C  float
  D  default

24. Which method is used by a Servlet to place its session ID in a URL that is written to the servlet’s response output stream?    B
A. The encodeURL method of the HttpServletRequest interface.
B. The encodeURL method of the HttpServletResponse interface.
C. The rewriteURL method of the HttpServletRequest interface.
D. The rewriteURL method of the HttpServletResponse interface.

每个使用Swing构件的程序必须有一个(   ).    D
    A.按钮     B.标签     C.菜单    容器 

下列标识符(名字)命名原则中,正确的是( )  D
  A. 类名的首字母小写

变量和方法名的首写字母大写 
C. 接口名的首写字母小写

常量完全大写

类Test1定义如下: 
1.public class Test1{ 
2. public float aMethod(float a,float b){ return 0;} 
3. 
4.} 
将以下哪种方法插入行3是不合法的。(B) 
A、public float aMethod(float a, float b,float c){ return 0;} 
B、public float aMethod(float c,float d){ return 0;} 
C、public int aMethod(int a, int b){ return 0;} 
D、private float aMethod(int a,int b,int c){ return 0;}

哪个语句创建了一个数组实例
A. int[] ia = new int [15]; 
B. float fa = new float [20]; 
C. char[] ca = “Some String”; 
D. int ia [][] = {4, 5, 6} {1, 2, 3};

以public修饰的类如:public class Car{…} 则Car( )   AA、可被其它程序包中的类使用 B、仅能被本程序包中的类使用 
C、不能被任意其它类使用 D、不能被其它类继承

下列哪个属于容器型构件( )   C
A .JEdit   B.JButton   C.JPanel   D.JTextField

程序的执行过程中用到一套JDK工具,其中java.exe是指( )   BA.Java文档生成器 B.Java解释器 
C.Java编译器 D.Java类分解器

下列关于构造方法的叙述中,错误的是( )   C
  A. Java语言规定构造方法名与类名必须相同 
  B. Java语言规定构造方法没有返回值,但不用vold声明 
  C. Java语言规定构造方法不可以重载 
  D. Java语言规定构造方法只能通过new自动调用

构造函数何时被调用( )   BA.类定义时 B.创建对象时 
C.调用对象方法时 D.使用对象的变量时

语句( )   D
A、只中断最内层的循环 B、只中断最外层的循环 
C、借助于标号,可以实现任何外层循环中断 D、只中断某一层的循环

语言中下面哪个可以用作正确的变量名称( )
A、3D  B、name  C、extends  D、implements

在JavaScript中如何验证一个数据是否是数字(D

如果用Integer.parseInt(value)有误就不是数字

若报错就不是数字,

没有方法验证

D .利用isNaN(value) 返回的boolean进行判断

------返回一个NaN(不是数字)。

下面哪一个不能作JSP的服务器( D
A. IBM WebSphere   B. BEA WebLogic   C. Tomcat    D. pws

下面哪项不是JSP操作指令( D ) ------???????????????????????
A. getProperty       B. forward 
C. include            D. import

如果希望控件在界面上按表格行分列排列,应使用下列那种布局管理器?( B)
A、BoxLayout  B、GridLayout  C、BorderLayout  D、FlowLouLayout

下面哪一项不是Java类访问控制关键字( C ) 
A. public B. protected 
C. this D. private