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
Can you extend singleton class?
Why do we use return statement?
Can list contain null in java?
Explain about features of local inner class?
whatis Home interface and Remoteinterface? with example?
What happens if we don’t override run method ?
What is a copy constructor in java?
Difference between comparator and comparable in java?
What is default locale java?
What is the default access specifier for variables and methods of a class?
Explain importance of finally block in java?
What is the purpose of an interface?
When wait(), notify(), notifyall() methods are called does it releases the lock or holds the acquired lock?
What is a parameter in matrices?
What are the advantages of exception handling?