Design - Interview Questions and Answers for 'Override static methods' | Search Java Interview Question - javasearch.buggybread.com
Javasearch.buggybread.com

Search Interview Questions


 More than 3000 questions in repository.
 There are more than 900 unanswered questions.
Click here and help us by providing the answer.
 Have a video suggestion.
Click Correct / Improve and please let us know.
Label / Company      Label / Company / Text

   



Design - Interview Questions and Answers for 'Override static methods' - 1 question(s) found - Order By Newest

 Q1. Is it a good practice to override static methods ?Design2017-03-10 10:58:02

Ans. Though it's useful but it's not as useful as overriding member or object methods. We cannot achieve polymorphic behavior with static methods by overriding their definition in derived class.

 Help us improve. Please let us know the company, where you were asked this question :   

   Like         Discuss         Correct / Improve     override static methods


Related Questions

  What are the advantages and disadvantages of static variables and static methods ?
  Can we access instance variables within static methods ?
 In which cases , moving methods to utility class could be useful ?
  Can we override static methods ? Why ?
  Why can't we use this in static context ?
  Interface can only have ...
 How can we ensure thread safety in static method ?
  Does java allow overriding static methods ?
  When are static and instance methods resolved ? During compile time or Runtime ?
 Have you ever tried mocking static methods ?



Help us and Others Improve. Please let us know the questions asked in any of your previous interview.

Any input from you will be highly appreciated and It will unlock the application for 10 more requests.

Company Name:
Questions Asked: