Create object without reflection

3197 views java
2

I have method:

public <T extends Things> T createInstance(Class<T> clazz) {
                return null;
           }

How create object of Things without reflection?

answered question

1 Answer

2

You can't. Just by having Class<T> you are already using reflection.

posted this

Have an answer?

JD

Please login first before posting an answer.