2016年Sun认证重点试题
来源:才华咖 本文已影响1.76W人
来源:才华咖 本文已影响1.76W人
Sun公司推出了Java以及Solaris技术认证方案。对于企业而言,可以借助这项认证作为招聘人才的`评判标准,或是作为衡量员工技术水准的依据;在个人方面,通过这些认证也可以证明个人的技术能力。下面是最新的sun认证考试题及答案,希望能帮助到大家!
1.写出此程序的输出结果.
class Test_For
{
public static void main(String[] args)
{
int i=0;
for(show('A'); show('B')&&(i<2);show('C'))
{
i++;
show('D');
}
}
public static boolean show(char ch)
{
t(ch);
return true;
}
}
2.写出此程序的输出结果.
class Demo
{
public static void main(String[] args)
{
int a=3,b=8;
int c=(a>b)?a++:b++;
tln("a="+a+"tb="+b+"tc+"+c);
int d=(a>b)?++a:++b;
tln("a="+a+"tb="+b+"tc+"+d);
int e=(a
tln("a="+a+"tb="+b+"tc+"+e);
int f=(a
tln("a="+a+"tb="+b+"tc+"+f);
}
}
3.写出此程序的输出结果.
class Demo
{
public static void main(String []args)
{
int i = 0, j = 5;
tp: for (;;)
{
i++;
for(;;)
if(i > j--) break tp;
}
tln("i = " + i + ", j = "+ j);
}
}
4.写出此程序的输出结果.
class DemoWhile_3
{
public static void main(String[] args)
{
int x=1;
while(x<10)
{
wx:while(x<7)
{
while(x<4)
{
t("A ");
x++;
break wx;
}
t("B ");
x++;
}
t("C ");
x++;
}
}
}
5.选择正确答案:
class Test
{
public static void main(String[] args)
{
String foo=args[1];
String bar=args[2];
String baz=args[3];
}
}
d:>java Test Red Green Blue
what is the value of baz?
A. baz has value of ""
B. baz has value of null
C. baz has value of "Red"
D. baz has value of "Blue"
E. baz has value of "Green"
F. the code does not compile
G. the program throw an exception
6.写出输出结果.
class Demo
{
public static void main(String[] args)
{
show(0);
show(1);
}
public static void show(int i)
{
switch(i)
{
default:
i+=2;
case 1:
i+=1;
case 4:
i+=8;
case 2:
i+=4;
}
tln("i="+i);
}
}
2016年Lotus认证试题及答案
Sun认证Java程序员考试试题2017
2016年Linux认证考试复习要点辅导
2016年Linux认证模拟试题及答案
2016年Linux认证精选试题及答案
2017年SUN认证Java程序员考试题库
2016年Linux认证考试练习题及答案
2016linux认证考试练习题
2017年SUN-Java程序员认证考试题库及答案
2017年SUN-Java程序员认证考试试题
2017年SUN认证考试流程详解
2017年Sun-Java程序员认证考试题库
2016年Linux认证考试要点:shell程序控制结构语句
2016年Linux认证考试试题及答案
2016年Linux认证考试模拟试题及答案
计量认证考试试题
sun认证JSP应用开发背景及特点
SUN认证Java2程序员考试题及答案
2016年Adobe InDesign认证试题及答案
2017年Linux认证考试练习题
2017年Linux认证考试单选题及答案
2017年LINUX认证考试模拟试题(附答案)
2016年Sun认证重点试题
SUN国际认证试题及答案
2016年Linux认证模拟真题及答案
2016年Linux认证模拟练习题及答案
2016年Linux认证单项选择题及答案
2017年Linux认证考试试题及答案
SUN笔试题目
2016年Linux认证考试模拟练习及答案
2017年Linux认证考试练习题及答案
2016微软认证考试重点题型
2017年SUN认证基本知识积累
Sun Solaris 国际认证考试流程表
Sun国际认证考试试题
sun公司国际认证试题及答案
2016年Adobe认证InDesign试题及答案
Linux系统中的SSH如何添加双重认证
中国电信认证考试试题
2017年LINUX认证考试模拟试题及答案