black

SCJP程序员认证考试

登录

单项选择题

You want a class to have access to members of another class in the same package. Which is the most restrictive access modifier that will accomplish that will accomplish this objective?()

A. Public
B. Private
C. Protected
D. Transient
E. No access modifier is required.

相关考题

单项选择题 Howcanyoucreatealistenerclassthatreceiveseventswhenthemouseismoved?()

多项选择题 import java.awt.*;   public class X extends Frame {   public static void main (String args) {   X x = new X();   x.pack();   x.setVisible(true);   }  public X() {   setLayout (new BordrLayout());   Panel p = new Panel ();   add(p, BorderLayout.NORTH);   Button b = new Button (“North”);   p.add(b):   Button b = new Button (“South”);   add(b1, BorderLayout.SOUTH):   }   }   Which two statements are true?()

单项选择题 Whichtypeofeventindicatesakeypressedonajava.awt.Component?()

All Rights Reserved 版权所有©财会考试题库(ckkao.com)

备案号:湘ICP备2022003000号-2