1、 Which of the following is not a valid Java identifier?
A. my Value
B. $_AAA1
C. width
D. m_x
2、 Sending a message to an object means that:
A. You call a method of the object.你对象的调用一个方法。
B. You access a variable of the object.
C. Both (a) and (b).
D. Neither (a) nor (b).
3、 Which of the following is a Scanner method?
A. nextLine.
B. nextText.
C. nextWord.
D. readNext.
4、 Which is a correct static method call of Math class method sqrt?
A. sqrt( 900 );.
B. math.sqrt( 900 );.
C. Math.sqrt( 900 );.
D. Math math = new Math(); math.sqrt( 900 );.
5、 Declaring main as ________ allows the JVM to invoke main without creating an instance of the class.
A. public.
B. void.
C. static.
D. final.
6、 Consider the array:
s[ 0 ] =