adplus-dvertising
frame-decoration

Question

Which of this access specifies can be used for a class so that its members can be accessed by a different class in the same package?

a.

Public

b.

Protected

c.

No Modifier

d.

All of the mentioned

Posted under Java Programming

Answer: (d).All of the mentioned

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

Q. Which of this access specifies can be used for a class so that its members can be accessed by a different class in the same package?

Similar Questions

Discover Related MCQs

Q. Which of these access specifiers can be used for a class so that its members can be accessed by a different class in the different package?

Q. Which of the following is the correct way of importing an entire package ‘pkg’?

Q. Which of the following is an incorrect statement about packages?

Q. Which of the following package stores all the standard java classes?

Q. Which of these keywords is used to define interfaces in Java?

Q. Which of these access specifiers can be used for an interface?

Q. Which of these keywords is used by a class to use an interface defined previously?

Q. Which of the following is the correct way of implementing an interface salary by class manager?

Q. Which of the following access specifiers can be used for an interface?

Q. Which of the following is the correct way of implementing an interface A by class B?

Q. All methods must be implemented of an interface.

Q. What type of variable can be defined in an interface?

Q. What does an interface contain?

Q. What type of methods an interface contain by default?

Q. What will happen if we provide concrete implementation of method in interface?

Q. What happens when a constructor is defined for an interface?

Q. What happens when we access the same variable defined in two interfaces implemented by the same class?

Q. Can “abstract” keyword be used with constructor, Initialization Block, Instance Initialization and Static Initialization Block.

Q. Which of these package is used for graphical user interface?

Q. Which of this package is used for analyzing code during run-time?