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
For ease of programming you can consider the maze as a 2D array with colors represented by below integer and characters (in capital letters). • B - Black • W -White • G- Green • R- Red R B W B W W W W W W B W B B W W W W W W W B W B W W W B W W W W B B W W W B W W W B W W B B B B W B W B W W B W W W B W W W B B B W W B W W W B W W B W B W W W B W B W W W W B B W W W W B W W W W W G Shortest Route Problem: • Solution that finds the shortest Route between Red and Green White will have 1 Weight. Red and Green carry no weights. Shortest path is the path with less weight when you add up the weights in the path.
How many bytes are a float?
What is an iterator interface in java programming?
What is the method overriding?
how we can make a write-only class in java?
Why set is used in java?
what is thread? : Java thread
Can an arraylist be empty?
What is difference overloading and overriding?
What is the difference between super class & sub class?
What is an empty string in css?
What is vector?
What is the difference between overriding and overloading in OOPS.
What is a key in java?
What is passing parameters in java?