单项选择题

已知zipname是一个压缩文件名,则zipname在下列代码中出现的正确位置是______。
ZipInputStream zin=
new ZipInputStream(new FileInputStream(①));
ZipEntry entry;
while((entry=zin.getNextEntry(②))! =null)
fileCombo.addItem(entry.getName(③));
zin.closeEntry(④);

Zin close();

A.①
B.②
C.③
D.④
<上一题 目录 下一题>
热门 试题

单项选择题
下列代码中的内部类名是______。 import java.awt.event.*; import javax.swing.*; class Talkingclock public void start (int interval, final boolean beep) ActionListener listener=new ActionListener() public void actionPerformed (ActionEvent event) ...... Timer t=new Timer(interval, listener); t. start(); ]
A.Timer
B.ActionListener
C.listener
D.匿名
单项选择题
下列代码的执行结果是______。 public class Test public static void main(String[]args) int[]x=0, 1, 2, 3; for(int i=0;i<3;i+=2) try System.out println(x[i+23 x[i]+x[i+1]); catch(ArithmeticException e) System.out.println( error1 ); catch (Exception e) System.out.println( error2 );
A.error1
B.error2
C.error1
D.2 <br> error2 error2
相关试题
  • 下列代码的编译或执行结果是______。...
  • 关于下列代码编译或执行结果的描述中,正确...
  • 在堆栈类SharedStack的定义中,为了保证堆...