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 is indexof in java?
what do you mean by stream pipelining in java 8? Explain
What is a marker interface?
What is getkey () in java?
These static constructors are correct ? class A { statc intA() { } static A(int x,int y) { } static A(int x) { } }
Are arrays primitive data types?
What is a heavyweight component?
What is array size in java?
Explain 5 io best practices?
How many types of keywords are there?
What is the meaning of nullable?
Is it possible to compare various strings with the help of == operator?
What is difference between ++ I and I ++ in java?
What is collection class in java?
what are the disadvantages of indexes in oracle?