What is the default scope of a method in Java?
-
Private
-
Public
-
Protected
-
Package-private
-
None of these
D
Correct answer
Explanation
The default scope is package-private. All classes in the same package can access the method/field/class. Package-private is stricter than protected and public scopes, but more permissive than private scope.