image.png

    使用
    image.png
    image.png
    image.png
    image.png
    image.png

    要点:获取Class对象的前两种方式都会在编译器检查,而第三中只能在运行期检错。