Which of the following is incorrect?
X: The default value of an object reference declared as an instance variable will be null
.
Y: A top level class
cannot be private
or protected
. It can either have public
or no modifier. If it does not have any modifier it is considered as default access.