单项选择题
下列对类的声明,正确的是______。
- A.abstract final class Hh{…}
B.abstract private move( ){…}
C.protected private number;
D.public abstract class Car{…}
点击查看答案&解析
相关考题
-
单项选择题
要从“file.dat”文件中读出第10个字节存到变量C中,下列______方法是合适的。
A.FileInputStream in=new FileInputStream("fildat");iskip(9);int c=iread( );
B.FileInputStream in=new FileInputStream("fildat");iskip(10);int c=iread( );
C.FileInputStream in=new FileInputStream("fildat");int c=iread( );
D.RandomAccessFile in=new RandomAccessFile("fildat");iskip(9);int c=ireadByte( ); -
单项选择题
在匹配器(Matcher)类中,用于寻找下一个模式匹配串的方法是______。
A.static boolean matches( )
B.boolean matchefind( )
C.int matchestart( )
D.int matcheend( ) -
单项选择题
在Java源文件中,什么类最多只能有一个,而其他类的个数不限
A.public
B.private
C.protected
D.没有这种类
