Can we override static methods?
Answer Posted / rambabu
Yes, We can! see Below---
public class Final1 {
public static void mone() {
System.out.println("Iam in final method of
super class");
}
}
public class Final extends Final1{
public static void mone() {
System.out.println("Iam in final method of
sub class");
}
public static void main(String a[]) {
Final f = new Final();
f.mone();
}
}
Is This Answer Correct ? | 0 Yes | 8 No |
Post New Answer View All Answers
What is functional interface in javatpoint?
State the main difference between c++ and java?
What is the final keyword in java?
Give me some null interfaces in java?
what is instanceof operator used in java?
What are features of java?
Break statement can be used as labels in java?
Explain what is encapsulation?
How do you escape in java?
What is formatted output?
what is ststic with example
What are the types of methods in java?
What was java originally called?
What are the basic concepts of OOPS in java?
What are loops in java? What are three types of loops?