2

Class.forName() and Class.class both can get the Class object.What is the different of them? I noticed that static method block don't execute when I got class object by Class.class.Is the class file not loaded by JVM yet?

GBlodgett
  • 12,704
  • 4
  • 31
  • 45
dabaicai
  • 71
  • 3

0 Answers0