Java implementation silently loading class sample code

preface

This article mainly introduces the content related to Java silently loading class. The reason for this article is that sometimes during development, we have such a scenario. We only want to get the basic information of a class, but we don't want to trigger the relevant static code block. This method was used in a previous article Java scanning package, I call it silent loading. If there is a professional name, please correct it.

The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
分享
二维码
< <上一篇
下一篇>>