题目内容

以下哪个关键字可以用来表明同步资源?( )

A. transient
B. synchronized
C. serialize
D. static

查看答案
更多问题

Java图形用户界面编程中,若显示一些不需要修改的文本信息,一般可使用( )类的对象。

A. JLabel
B. JButton
C. JTextArea
D. JTextField

RandomAccessFile类的( )方法可用于从指定流读取整数。

A. readLine
B. readByte
C. readInteger
D. readInt

在复选框中选中或取消选中某一选项,要捕获该事件必需实现哪个接口?( )

ActionListener
B. MouseListener
C. MouseMotionListern
D. ItemListener

JTextArea中的文档对象可以触发下列哪种类型的事件?

A. MouseEvent
B. ItemEvent
C. DocumentEvent
D. KeyEvent

答案查题题库