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 |
What is anagram in java?
How to call a Stored Procedure from JDBC?
Can you write a java class that could be used both as an applet as well as an application?
How do you define a variable?
Is hashset sorted in java?
how to use finalize()Method to resources
What is thread safe singleton?
What are some alternatives to inheritance?
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); }
Can an interface implement another interface?
Can you add null to a list java?
Which of these methods belong to Thread & Object class? join, yield, sleep, wait, notify