Can you override static method in java?
Answer / sagar kathane
yes we can override static methods in java. and it is called method hiding because it hides parent method and reflex whatever changes have been done in child class.
| Is This Answer Correct ? | 0 Yes | 0 No |
suppose in a class there is a code like this: { Set hs=new Hashset(); hs.add(new Emp("kathy",1000)); hs.add(new Emp("kathy",2000)); } how can u avoid the above code in your class as set won't allow duplicate objects?
Explain the selection sort algorithm and state its time complexity?
If system.exit (0); is written at the end of the try block, will the finally block still execute?
What is the relationship between clipping and repainting under awt?
Can I declare class as static or private?
What is a dot notation?
Can we sort list in java?
what is aggregation in java?
Does garbage collection occur in permanent generation space in jvm?
What is covariant return type?
What are the files generated after using IDL to java compiler?
Explain aggregation in java?