Can we extend immutable class?
No Answer is Posted For this Question
Be the First to Post Answer
What is tree node in java?
What is use of super keyword?
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.
How will you print number in reverse (descending) order in BST.
Can there be an abstract class with no abstract methods in it?
What will happen if non-synchronized method calls a static synchronized method and what kind of lock it acquires?
How does a cookie work in Servlets?
What is the difference between this() and super() in java?
What is the purpose of finalization?
Explain the features of java?
What is a numeric literal?
what is the full form of java