Is it possible to "manually" create java.lang.Method instances in Java?

I know this may seem strange, but I was wondering if it is possible to manually create java.lang.Method at runtime.

What about Class<?> ?

+4
source share
1 answer

At runtime, you can create a Class<?> Using libraries such as:

They may contain a method that you can get, as usual, using reflection.

See also: fooobar.com/questions/425045 / ...

+4
source

Source: https://habr.com/ru/post/1393771/


All Articles