Explain java coding standards for methods?


No Answer is Posted For this Question
Be the First to Post Answer

Post New Answer

More Core Java Interview Questions

State one difference between a template class and class template.

0 Answers   HAL,


explain different ways of using thread? : Java thread

0 Answers  


How many types of interfaces are there?

0 Answers  


Why we used break and continue statement in java?

0 Answers  


What is class array in java?

0 Answers  






What methods are used to get and set the text label displayed by a button object?

0 Answers  


What is e java?

0 Answers  


What do you mean by Function Overloading in java?

0 Answers   Impetus,


What is constructor and its types?

0 Answers  


What is the purpose of default constructor?

0 Answers  


What is the collections api in java programming?

0 Answers  


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.

3 Answers  


Categories