Why can we not override static method?
No Answer is Posted For this Question
Be the First to Post Answer
JVM responsibility?
Given: 11. public static void main(String[] args) { 12. Integer i = uew Integer(1) + new Integer(2); 13. switch(i) { 14. case 3: System.out.println(”three”); break; 15. default: System.out.println(”other”); break; 16. } 17. } ‘What is the result? 1 three 2 other 3 An exception is thrown at runtime. 4 Compilation fails because of an error on line 12.
Can static method access instance variables ?
Difference between Linked list and Queue?
Can we create object of static class?
Explain where variables are created in memory?
What is the public method modifier?
What is a map? What are the implementations of map?
Why call by value prevents parameter value change?
Class c implements interface I containing method m1 and m2 declarations. Class c has provided implementation for method m2. Can I create an object of class c?
What is empty string literal in java?
What is the primary benefit of encapsulation?