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
how we can create packages in java?
List down the methods and interfaces of collection class in java.
Why synchronization is important in java?
What does indexof mean?
Are variables stored in ram?
Why does java does not support multiple inheritance? Explain
What are the advantages of functions?
Explain the difference between a Thread and a Process.
What does @override mean?
how to create multithreaded program? Explain different ways of using thread? : Java thread
What is the tradeoff between using an unordered array versus an ordered array?
List some features of the abstract class.
what is the final keyword denotes in java?
Which is fastest collection in java?
How can you set an applet’s height and width as a percentage?