Answer Posted / sumalatha
HI,
POLYMORPHISM is very good fature...in oops mainly
polymorphism means manyforms..that is by using polymorphism
with the same name signature
but either a different number of parameters or different
types in the parameter list..it is colled methodover
loading.Another one is Overridding...it is also very usful
for us..by using this u can use in Baseclass and
DerivedClass same mathodname..with diffarent body is
possibul..but we use override keyword
| Is This Answer Correct ? | 4 Yes | 0 No |
Post New Answer View All Answers
When can an object reference be cast to an interface reference in java programming?
Why Java doesn’t support multiple inheritance?
What does it mean to be immutable?
What is java and its types?
What do you mean by thread safe?
From the two, which would be easier to write: synchronization code for ten threads or two threads?
What is data type example?
What is meant by string is immutable?
Give example to differentiate between call by value and call by reference.
These static constructors are correct ? class A { statc intA() { } static A(int x,int y) { } static A(int x) { } }
there are N number of matchboxes numbered 1...N.each matchbox contain various number of stick.Two player can alternatevely pick some amount of stick from the higest stick containing box . The player is condidered win if there is no stick after his move.Find the final move so that the move player win. Note:In case the number of stick is equal ,pick the stick from the higest numbered box.
Where are local variables stored?
Can I declare class as static or private?
What is immutable data?
What is the advantage of functional interface in java 8?