Why isn’t there operator overloading?
No Answer is Posted For this Question
Be the First to Post Answer
What are basic data types?
How is java created?
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.
INTERVIEW QUESTION FOR ANDROID
I need help please send me reply: Write a program "if given a string like 'HAT', the combination's returned should be like ATH,THA,TAH in java"?
Difference between Primary key and unique key?
What is string intern in java?
extending thread class or implementing runnable interface. Which is better? : Java thread
Can we overload final method in java?
what is the difference between sleep() and Wait()?
How do you create an array in java?
What is the difference between compile-time polymorphism and runtime polymorphism?