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 the static block?
Can you tell me range of byte?
Is void a return type?
How much ram can a 64 bit processor theoretically?
What is a “stateless” protocol ?
What are the 3 types of control structures?
What is the latest java version?
Tell me a few examples of final classes defined in Java API?
when you will synchronize a piece of your code? : Java thread
What is ascii code?
What are operators and its types?
What is valid keyword in java?
Is Constructor possible in abstract class in java ?
What is hashset in java?
What is hotjava?