Submitted by c-admin on Mon, 06/03/2019 - 23:53
Compared to public, protected and private accessibility, default accessibility is...
Select 1 option
A. Less restrictive than public
B. More restrictive than public, but less restrictive than protected.
C. More restrictive than protected, but less restrictive than private.
D. More restrictive than private.
E. Less restrictive than protected from within a package, and more restrictive than protected from outside a package.
Submitted by c-admin on Mon, 06/03/2019 - 23:50
How can you declare 'i' so that it is not visible outside the package test?
package test;
public class Test{
XXX int i;
/* irrelevant code */
}
Select 2 options
A. private
B. public
C. protected
D. No access modifier
E. friend
Pages