下面哪个单词是Java语言的关键字( )
A.Float B.this C.string D.unsigned
int x ;
void t();}
D.abstract interface ATest extends ATest1, ATest2 // ATest1,ATest2为已定义的接口
{ abstract void t(){ };}
以下程序执行后的输出为。
public class Test
{ static int m1(int a ,int b){
int c;
a+=a;
b+=b;
c=m2(a,b);
return(c*c); }
static int m2( int a,int b) {
int c;
c=a*b%3;
return( c );
}
public static void main(String[] args){
int x=1,y=3,z;
z= m1(x,y);
System.out.println("z="+z);
}
}
在使用interface声明一个接口时,只可以使用( )修饰符修饰该接口。 A. private B. protected C. private protected D. public
选择答案:查看解析