What is true about protected constructor?
(a) Protected constructor can be called directly
(b) Protected constructor can only be called using super()
(c) Protected constructor can be used outside package
(d) protected constructor can be instantiated even if child is in a different package
(a) Protected constructor can be called directly
(b) Protected constructor can only be called using super()
(c) Protected constructor can be used outside package
(d) protected constructor can be instantiated even if child is in a different package
Right choice is (b) Protected constructor can only be called using super()
The best explanation: Protected access modifier means that constructor can be accessed by child classes of the parent class and classes in the same package.