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
How do you check if a character in a string is a digit or letter?
How to make a write-only class in java?
What are thread safe functions?
What is supplier in java?
Can we access the non-final local variable, inside the local inner class?
What is derived datatype?
How does split work in java?
Can we pass a primitive type by reference in java? How
What are the five major types of reference sources?
What is a flag variable?
What is t type java?
Is main an identifier?
What is a java lambda expression?
What are the types of web technologies?
What is java instanceof operator?