Explain java coding standards for methods?
No Answer is Posted For this Question
Be the First to Post Answer
State one difference between a template class and class template.
explain different ways of using thread? : Java thread
How many types of interfaces are there?
Why we used break and continue statement in java?
What is class array in java?
What methods are used to get and set the text label displayed by a button object?
What is e java?
What do you mean by Function Overloading in java?
What is constructor and its types?
What is the purpose of default constructor?
What is the collections api in java programming?
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.