Mustafa Garhi wrote:Bear i couldn't understand your point.
Just because you
can do something in an odd and unconventional way doesn't mean that you
should. Doing things in "clever" ways doesn't make you look clever -- they make you look arrogant and pompous. Experienced engineers follow conventions so that their code is clear, readable and understandable.
Mustafa Garhi wrote:Can you please clarify which conventions are we talking about?
While there are other ways to accomplish the task, using Class.forName() is the accepted convention. So unless you have a sound engineering reason to do it another way, following the convention is best.