Login
Remember
Register
CodersEditor Q&A
Online IDE
Questions
Unanswered
Tags
Users
Ask a Question
Programming Tutorials
Ask a Question
Can we Overload or Override static methods in Java?
0
votes
asked
Jan 22, 2021
by
PreethiSadhish
(
524
points)
Overload or Override static methods in Java
java
Please
log in
or
register
to answer this question.
1
Answer
0
votes
answered
Jan 22, 2021
by
Annie
(
1.1k
points)
No, we cannot override static methods because method overriding is based on dynamic binding at runtime and the static methods are bonded using static binding at compile time. So, we cannot override static methods.
Please
log in
or
register
to add a comment.
Welcome to CodersEditor Q&A, where you can ask questions and receive answers from other members of the community.
239
questions
203
answers
2
comments
692
users
Related questions
Can we Overload or Override static methods in Java?
Can you override a private or static method in Java?
What is singleton class in Java and how can we make a class singleton?
Why the main method is static in java?
Can we write multiple catch blocks under single try block?
...