Friday, December 26, 2014

Explain about the dynamic behavior of core java


Dynamic Behaviours  is a design pattern similar to the Chain of Responsibility pattern, is ideally suited for applications that must change the class of objects fluidly at runtime.
Java is entirely built on Dynamic memory allocation . i.e the memory will be allocated dynamically at the time of creating objects. The unused objects are automatically  removed by the garbage collector.
Java supports runtime polymorphism which is also termed as dynamic polymorphism. Which states that if the super class method is overridden in the sub class then the JVM identifies the appropriate method invocation at run time dynamically.

0 comments:

Post a Comment