欢迎来到在线考试题库网 在线考试题库官网
logo
全部科目 > Java认证考试 > SCJP程序员认证考试

单项选择题

It is desirable that a certain method within a certain class can only be accessed by classes that are defined within the same package as the class of the method. How can such restrictions be enforced?()  

    A.Mark the method with the keyword public.
    B.Mark the method with the keyword protected.
    C.Mark the method with the keyword private.
    D.Mark the method with the keyword package.
    E.Do not mark the method with any accessibility modifiers.

点击查看答案&解析

相关考题

微信小程序免费搜题
微信扫一扫,加关注免费搜题

微信扫一扫,加关注免费搜题