Explain polymorphism citing an example.


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

Post New Answer

More Core Java Interview Questions

What are instance variables?

0 Answers  


What are three advantages of using functions?

0 Answers  


What are the rules for naming an array?

0 Answers  


When is finally block not called?

0 Answers  


What will happen inside init() in servlet. my interviewer asked servlet lifecycle. i said "once servlet is loaded in to memory init() will be called which performs servlet initialization " . Again interview asked what values will be initialized . what is difference between init() and init(ServletConfig config).

2 Answers   Infinite Computer Solutions, TCS,


Can we declare the main method of our class as private?

0 Answers  


how come we know the object is no more used in the class?

2 Answers   Accenture,


Difference between method overloading and overriding.

0 Answers  


Can we use synchronized block for primitives?

0 Answers  


what value will be return by the read() method once it reaches the end-of-file? a. Throws EOException b. Return null c. Return -1 d. Read method return nothing, because it is void method

1 Answers  


What is return type in java?

0 Answers  


Explain the purpose of garbage collection in Java?

0 Answers   BirlaSoft,


Categories