单项选择题
选出在Java中有效的注释声明:()
A./*/This is a comment
B.*/This is a comment
C./This is a comment
D./*This is a comment*/
点击查看答案&解析
相关考题
-
单项选择题
下列String类()方法返回指定字符串的一部分。
A.extractstring()
B.substring()
C.Substring()
D.Middlestring() -
单项选择题
下面哪条语句不能定义一个float型的变量?()
A.float f1=-343;
B.float f2=3.14;
C.float f3=0x12345;
D.float f4=2.8F; -
单项选择题
()修饰符不允许父类被继承。
A.abstract
B.static
C.protected
D.final
