Can we change the scope of the overridden method in the subclass?



Can we change the scope of the overridden method in the subclass?..

Answer / Ritika Kapoor

No, we cannot change the access modifier (scope) of an overridden method in the subclass. The access modifier of an overridden method must be equal to or more accessible than that of the original method in the superclass.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Core Java Interview Questions

Why arraylist is not synchronized in java example?

1 Answers  


Is a boolean 1 bit?

1 Answers  


How many Java environments are there?

1 Answers   Phantom Technologies,


why java does not support multiple inheritance

41 Answers   Diamond, Euclid, Evergent, KLKJ, Mind Tree, NIIT, SSI Small Scale Industries, Wipro,


Can memory leak happen java?

1 Answers  


Can we override the static method?

1 Answers  


what is meant by Garbage collection?

1 Answers   Cap Gemini,


Can we extend singleton class in java?

1 Answers  


What is the multi-catch block in java?

1 Answers  


What is use of inner class in java?

1 Answers  


What is n in java?

1 Answers  


What is data structure in java?

1 Answers  


Categories