Q. In Java, can a subclass inherit static methods from its superclass?

  • (A) Only if the superclass is marked as "abstract"
  • (B) Only if the subclass is marked as "final"
  • (C) Yes, a subclass inherits static methods from its superclass
  • (D) No, static methods are not inherited
πŸ’¬ Discuss
βœ… Correct Answer: (C) Yes, a subclass inherits static methods from its superclass

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
116
Total Visits
πŸ“½οΈ
1 y ago
Published
πŸŽ–οΈ
Vikash Gupta
Publisher
πŸ“ˆ
91%
Success Rate