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 the main use of java?
How is it possible in java programming for two string objects with identical values not to be equal under the == operator?
Which is the class in java?
Explain when classnotfoundexception will be raised ?
If you are given the name of the function at run time how will you invoke the function?
What is formatted output?
What is string data type?
Difference between static and dynamic class loading.
What is numel matlab?
What are the legal parameters?
Give the difference between the println method and sqrt method?
When would you use a static class?
Why are functions called methods in java?
What are the drawbacks of singleton class?
What is a java list?