选择题
1:Which of the following answer is correct to expressthe value 8 in octal number?
r|
「I
广I
C
2:Which statement about listener is true?
广|
component allow multiple listeners to be added.
\r\
multiple listener be add to a single component, the event only affected one listener.
广1
don?t allow multiple listeners to be add.
广I
Give the following java class: public class Example{ static int x[]=new int[15];
public static void main(String args[]){ ntln( x[5]);
}
}
Which statement is corrected?
Give the following java class: public class Example{ static int x[]=new int[15];
public static void main(String args[]){ ntln( x[5]);
}
}
Which statement is corrected?
广|
compile, some error will occur.
\r\
run, some error will occur.
广1
is zero.
广I
is null.
4:
Give the following java source fragement:
〃point x
public class Interesting{
//do something
}
Which statement is correctly Javasyntax at point x?
Give the following java source fragement:
//point x
public class Interesting{
//do something
}
Which stateme nt is correctly Javas yn tax at po int x?
广|
r|
C
5:
public class MyClass{//do other thing …}
static int Pl=
class MyClass{//do something …}
none
What will be the result of executing the following code?
boolean a= true;
boolean b = false;
boolean c= true;
if (a == true)
if (b == true)
if (c == true) ("Some things are true in this world");
else ("Nothing is true in this world!");
else if (a && (b = c)) ("It's too confusing to tell what is true and what is false");
else ("Hey this won't compile");
Choices:
What will be the result of executing the following code?
boolean a= true;
boolean b = false;
boolean c= true;
if (a == true)
if (b == true)
if (c == true) ("Some things are true in th
上海神机软件有限公司 来自淘豆网m.daumloan.com转载请标明出处.