Skip to content

Instantly share code, notes, and snippets.

@OMGZui
Created October 22, 2022 10:41
Show Gist options
  • Save OMGZui/c20a14d05c1e5167f2566163dd04f5b5 to your computer and use it in GitHub Desktop.
Save OMGZui/c20a14d05c1e5167f2566163dd04f5b5 to your computer and use it in GitHub Desktop.
ReflectDemo reflectDemo = new ReflectDemo();
(1)Class<ReflectDemo> reflectDemoClass = ReflectDemo.class;
(2)Class<?> aClass = Class.forName ("com.omgzui.springtransaction.transactiondemo.reflectdemo.ReflectDemo");
(3)Class<? extends Class> aClass = reflectDemoClass.getClass ();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment