1、下面的程序经运行后,其输出成果是( )public class Yuedu1 { public static void main(String[] args) { int x,y; x=y=0; do{ y++; x*=x; } while ((x>0)&&(y>5)); System
println("y="+y+" x="+x); }}选择一项:a
y=1 x=0 b
y=0 x=1 c
y=1 x=1 d
y=0 x=0 题目 2、Java application 中的主类需包含 main 措施,main 措施的返回类型是什么
( )选择一项:a
void b
double c
float 题目 3、不对的下列语句序列执行后,r 的值是( )
char ch='8'; int r=10; switch( ch+1 ) { case '7': r=r+3; case '8': r=r+5; case '9': r=r+6; break; default: r=r+8; }选择一项:a
13 题目 4、不对的编译、运行下面代码将发生什么
( )public class Test5 {public static void main (String args []) {/* This is the start of a commentSystem
println("Done the test");/* This is another comment */System
println ("The end");}} 选择一项:a
输出“The end”
输出“Done the test”