Can static methods be overridden?
Answer Posted / sonu
No never we cannot override the static methods becouse overriding is done only run time and static methods get memory at compile time and static things not the part of object.
| Is This Answer Correct ? | 19 Yes | 4 No |
Post New Answer View All Answers
What happens to a static var that is defined within a method of a class?
How do you compare two strings lexicographically?
Is it possible to write a regular expression to check if string is a number?
Can a class be declared as protected?
How to sort array of 0 and 1 in java?
What is the advantage of OOP in java?
Can constructor return value?
What is functional interface in java?
What are different types of classloaders?
Can we call a non-static method from inside a static method?
What is the exception hierarchy in java?
What is the use of StringTokenizer class?
What is difference between word and integer?
Which is bigger double or float?
Can a java program have 2 main methods?