Skip to content
Create a gist now

Instantly share code, notes, and snippets.

/* 方法 1: 使用 .class */
Class c = String[].class;
/* 方法 2: 使用实例的getClass()方法 */
c = new String[1].getClass();
/* 方法 3: 使用 Class.forName */
c = Class.forName("[Ljava.lang.String;");
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.