black

SCJP程序员认证考试

登录

多项选择题

Given the following class, which statements can be inserted at position 1 without causing the code to fail compilation?()  
public class Q6db8 {  
int a;  
int b = 0;  
static int c;  
public void m() {  
int d;  
int e = 0;  
// Position 1  
}  
} 

A.a++;
B.b++;
C.c++;
D.d++;
E.e++;

相关考题

单项选择题 If this source code is contained in a file called SmallProg.java, what command should be used to compile it using the JDK?()   public class SmallProg {   public static void main(String args[])  { System.out.println("Good luck!"); }  }

单项选择题 HowdoobjectspassmessagesinJava?()

多项选择题 Given that Thing is a class, how many objects and reference variables are created by the following code?()   Thing item, stuff;   item = new Thing();   Thing entity = new Thing();

All Rights Reserved 版权所有©易学考试网(yxkao.com)

备案号:湘ICP备2022003000号-3