Can you override static method in java?



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

Post New Answer

More Core Java Interview Questions

What is anagram in java?

0 Answers  


How to call a Stored Procedure from JDBC?

4 Answers   Satyam,


Can you write a java class that could be used both as an applet as well as an application?

0 Answers  


How do you define a variable?

0 Answers  


Is hashset sorted in java?

0 Answers  






how to use finalize()Method to resources

4 Answers   TCS,


What is thread safe singleton?

0 Answers  


What are some alternatives to inheritance?

0 Answers  


ublic class Java_Coding_Samples { public static void JavaHungr(NumberFormatException ae){ System.out.println("integer"); } public static void JavaHungry(Exception e){ System.out.println("string"); } public static void JavaHungry(ArithmeticException ae){ System.out.println("object"); } public static void main(String[] args) { JavaHungry(null); }

1 Answers  


Can an interface implement another interface?

0 Answers  


Can you add null to a list java?

0 Answers  


Which of these methods belong to Thread & Object class? join, yield, sleep, wait, notify

3 Answers   Ericsson,


Categories