Can we override static methods?
Answer Posted / yogesh gandhi
Neha,
I didn't get your answer.
You can overload as well as override static methods, but
only with static methods.
I have tried it and it is getting compiled.
Example is here.
*********************************************************
public class abc
{
public static void main(String args[])
{
}
public static void trss()
{
}
public static void trss(int i)
{
}
}
*********************************************************
| Is This Answer Correct ? | 13 Yes | 1 No |
Post New Answer View All Answers
What do you mean by boolean?
What is hashing principle in java?
Is string thread safe in java?
What is the argument in java?
Tell me the latest versions in java related areas?
What are thread local variables?
What makes a function well defined?
How do you replace a string in java?
Explain the private field modifier?
What is instance means in java?
Difference between throw and throws?
What if constructor is protected in java?
Why string objects are immutable in java?
Write a java program for binary search?
What is hash code collision?