niusouti.com

单选题Component类中用于刷新组件的方法是(  )。A getFont()B getName()C update()D paint()

题目
单选题
Component类中用于刷新组件的方法是(  )。
A

getFont()

B

getName()

C

update()

D

paint()


相似考题
参考答案和解析
正确答案: B
解析:
A项,getFont()方法用于获得构件字体;B项,getName()方法用于获得构件名称;C项,update()方法用来刷新构件;D项,paint()方法用于绘制构件。