Working with the class keyword in Java

后端 未结 8 1327
梦毁少年i
梦毁少年i 2021-02-13 19:16

I don\'t really understand how the class keywords work in some instances.

For example, the get(ClientResponse.class) method takes the Cl

8条回答
  •  悲哀的现实
    2021-02-13 19:36

    There's a lot of ways Class objects can be used. This is used for Reflection. Below is a link that can help you understand more.

    http://docs.oracle.com/javase/tutorial/reflect/class/classNew.html

提交回复
热议问题