填空题

在一个容量为25的循环队列中,若头指针front=16,尾指针rear=9,则该循环队列中共有______个元素。

【参考答案】

R
<上一题 目录 下一题>
热门 试题

单项选择题
下面程序段的输出结果为 public class Test public static void main(String args[]) boolean a,b,c; a=(3<5); b=(a==true); System.out.println( a= +a+ b= +b); c=(b==false); System.out.println( b= +b+ c= +c);
A.a=true b=false
b=true c=false
B.a=true b=false
b=true c=true
C.a=true b=true
b=true c=false
D.a=false b=false
b=true c=false
单项选择题
下面程序段的输出结果是 class Test public static void main(String args[]) MyThread t=new MyThread(); t.displayOutput( t has been createD) ); t.start(); class MyThread extends Thread public void displayOutput(String s) System.out.println(s); public void run() displayOutput( t is running. );
A.t has been created.
B.t has been created.
t is running.
C.t is running.
D.编译出错
相关试题
  • 请阅读下列程序代码,然后将程序的执行结果...
  • 请将程序补充完整。 import java.awt....
  • 关于文件名的处理中,测试当前文件是否目录...
  • 包含Swing构件的Applet(小应用程序)应该...
  • 下列程序的功能是创建了一个显示5个 Hell...