Originally posted by Nitesh Kant
It is useful for containers that can plugin different type of components. A user can write a plugin in java or in a popular scripting language like python. The provision in java to include and run a script as any other java program makes life easy for such scenarios.
Thank you for your answer Nitesh, but your answer is more on what we can do? and how we can do?
My question is, what are the situation where we require specifically to go with scripting languages rather than using java code? Why we require to embed any scripting language in java code, where java can do anything that a scripting language can do?