Class

Emp e=new Emp();Class.forName("Emp").newInstance();can anyone explain the diff b/w two statements?
[119 byte] By [kalpanava] at [2007-11-27 8:43:44]
# 1

In the first example, the type - Emp - has to be known and decided-upon at compile-time, whereas in the second, the decision can be deferred until runtime. This is how applications such as Tomcat can work with classes you write, which the developers of Tomcat knew nothing about when they wrote Tomcat

georgemca at 2007-7-12 20:44:15 > top of Java-index,Core,Core APIs...