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 are latest features introduced with java 8?
What’s the difference between the methods sleep() and wait()?
What are voids?
What are annotations in java?
What is the purpose of static methods and variables?
What is finally in Java?
What is slash r?
Difference between arraylist and vector.
does java support pointers?
How much is a java license?
Why we use set in java?
What is the difference between a static and a non-static inner class in java programming?
What is meant by singleton class?
Explain differences between collection api and stream api?
Why string is not a wrapper class?