Can you achieve runtime polymorphism by data members?
What is meant by class loader? How many types are there?
Difference between nested and inner classes ?
11. static class A { 12. void process() throws Exception { throw new Exception(); } 13. } 14. static class B extends A { 15. void process() { System.out.println(”B”); } 16. } 17. public static void main(String[] args) { 18. new B().process(); 19. } What is the result? 1 B 2 The code runs with no output. 3 Compilation fails because of an error in line 12. 4 Compilation fails because of an error in line 15.
String and stringbuffer both represent string objects. Can we compare string and stringbuffer in java?
Differentiate between a constructor and a method? Can we mark constructors final?
Can we override private methods?
Which list is sorted in java?
What is AppletStub?
Does sprintf add a null terminator?
Explain the selection sort algorithm and state its time complexity?
What is append in java?
How to make a class immutable?