What are constants?
No Answer is Posted For this Question
Be the First to Post Answer
What are generic methods?
What is the difference between C++ & Java?
78 Answers College School Exams Tests, HAL, SUN, Syntel, TCS, Wipro,
What is the purpose of an interface?
In Java, what types of classes perform inheritance?
How is abstraction implemented in java ?
What is the difference between equals() and == in java?
When should I use a singleton?
Given: 10. interface A { void x(); } 11. class B implements A { public void x() { } public voidy() { } } 12. class C extends B { public void x() {} } And: 20. java.util.List list = new java.util.ArrayList(); 21. list.add(new B()); 22. list.add(new C()); 23. for (A a:list) { 24. a.x(); 25. a.y();; 26. } What is the result? 1 Compilation fails because of an error in line 25. 2 The code runs with no output. 3 An exception is thrown at runtime. 4 Compilation fails because of an error in line 20.
WHAT IS THE SCOPE FOR COREJAVA...? IS JAVA ONLY CORE JAVA ?
What is the use of an interface?
Why is an interface be able to extend more than one interface but a class can’t extend more than one class?
How is hashcode calculated in java?