Multiple Choice Question

Quiz Guidelines

 

QID: 
431
Tags: 
Question: 

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

Q&A Set: