任何一个类都有getClass()方法,调用该方法即可获得一个表示类信息的对象Class
    getName 就是.

    1. package com.tianmaying;
    2. public class ReflectionTest {
    3. public static void main(String[] args) throws Exception {
    4. ReflectionTest reflectionTest = new ReflectionTest();
    5. System.out.println(reflectionTest.getClass().getName());
    6. }
    7. }