单项选择题

定义类头时能使用的修饰符是( )。

A.private
B.static
C.protected
D.abstract
<上一题 目录 下一题>
热门 试题

单项选择题
下列语句中,能完成用整型数10创建一个Integer对象的是( )。
A.Integeri=10;
B.Integeri=newInteger(10);
C.inti=newInteger(10);
D.inti=10;
单项选择题
在匹配器(Matcher)类中,用于输入字符串与模式串比较的方法是( )。
A.static Boolean matches()
B.boolean matcher.find()
C.int matcher.start()
D.int matcher.end()
相关试题
  • MouseDragged()方法是MouseMotionListene...
  • 当实现Runnable接口时,要实现的方法是 【...
  • JTextField的事件监听器接口是 【13】 ...
  • Java中方法的参数传递是 【11】 调用,...
  • Java中的继承机制之所以能够降低程序的复杂...