I do not think this question is anyway related to JSP.Please choose forum properly before posting.
Coming to the question , the first one uses reflection to create objects.
Its useful in certain conditions where at runtime you need to decide which object to create according to some parameters.In that case you can make well use of reflection to create object of desired type.
Post by:Zoram Paul
, Ranch Hand
Thank you Rahul,
My doubts are quiet cleared now. Did you mean dynamic creation of objects?.
Post by:Rahul Bhattacharjee
, Ranch Hand
Originally posted by Zoram Paul: Did you mean dynamic creation of objects?.
The parameter to forName can be decided at runtime for creation of different object.
Post by:autobot
How do they get the deer to cross at the signs? Or to read this tiny ad?
Thread Boost - a very different sort of advertising