1. Which of the following modifier means a particular variable cannot be accessed within the package?
Correct Answer is : private
2. How can a protected modifier be accessed?
Correct Answer is : accessible within package and outside the package but through inheritance only
3. What happens if constructor of class A is made private?
Correct Answer is : Objects of class A can be instantiated only within the class where it is declared
4. All the variables of interface should be?
Correct Answer is : public, static and final
5. What is true of final class?
Correct Answer is : Final class cannot be inherited
6. How many copies of static and class variables are created when 10 objects are created of a class?
Correct Answer is : 45301
7. Can a class be declared with a protected modifier.
Correct Answer is : FALSE
8. Which is the modifier when there is none mentioned explicitly?
Correct Answer is : default