Styrow.dev
Question 144 of 247
Java Topic: General medium

Difference between loadClass and Class.forName?

Question

Difference between loadClass and Class.forName?

Answer

loadClass only loads the class but doesn’t initialize the object whereas Class.forName initialize the object after loading it.