给定程序如下public static void main(String args[]) {Float f=new Float(4.2f);Float c;Doub
A.equals(d)
B.c==d
C.equals(f)
D.c=f
A.equals(d)
B.c==d
C.equals(f)
D.c=f
A.public void Test(){}
B.public Test() {}
C.public static Test(){}
D.public static void Test(){}
A. throws IOException
B. throw IOException
C. throws Exception
D. throws RuntimeException
执行下面的程序段,输出结果为【 】。 public class Q { public Static Void main(String args[]) { int anar[]=new int[5]; System.out.println(anar[0]); } }
A、static void main(String[] args)
B、public void main(String[] args)
C、public static void main(String[]s)
D、public static void main(String[] args)
执行下面的程序段,辅出结果为上【 】。 public class Q { public static void main (String argv[]) { int anar[]=new int[5]; System.out.pfintln(anar[0]); } }
A.3
B.5
C.6
D.4
下面程序执行的结果应是【 】。 class Test2 { public static void main(String [] args) { int i=2,j=1; byte k=(byte)(i+j); System.out.println(k); } }
A.-1
B.Exception
C.1
D.0