Which acce ...
Terms and Conditions
Which access modifiers allow access to the field/method of a public class to other classes that are in the same package?
Public, private and default (package-private) access modifiers allow other classes in the same package to access methods and fields of a class
public, private, protected
There are two classes: package pak1; import pak2.B; pub...
Is it possible to refer to a private method of some class from another instance ...
What will happen as the result of the following code compilation? ...
Which line will the first compilation error occur in? p...
What is the result of the following code compilation and execution? ...
Login to learn Java
Read more about
Sign Up Now
Subscribe for future quizzes