Can you achieve runtime polymorphism by data members?


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

Post New Answer

More Core Java Interview Questions

What is meant by class loader? How many types are there?

0 Answers  


Difference between nested and inner classes ?

0 Answers  


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.

6 Answers  


String and stringbuffer both represent string objects. Can we compare string and stringbuffer in java?

0 Answers  


Differentiate between a constructor and a method? Can we mark constructors final?

0 Answers  


Can we override private methods?

0 Answers  


Which list is sorted in java?

0 Answers  


What is AppletStub?

1 Answers  


Does sprintf add a null terminator?

0 Answers  


Explain the selection sort algorithm and state its time complexity?

0 Answers   Flextronics,


What is append in java?

0 Answers  


How to make a class immutable?

15 Answers   Bosch, TSYS,


Categories