java jdk 动态代理问题

1.假设两个不同第三方jar包的类a和b都实现了同一个接口,现在对a和b使用jdk代理增强会生成几个代理类的Class对象?为什么?

2.接上一个问题,如果使用jdk动态代理时a和b分别指定了不同的类加载器,会生成几个代理类的Class对象?为什么?

3.如果使用jdk动态代理时a和b都没有指定类加载器,会怎样?

4.卸载类加载器时其对应的代理类Class对象是否会被释放回收?


慕少8307396
浏览 1689回答 0
0回答

慕斯4360584

BABFCIVCVIVQGOVCWZWPJJDGNGDQNARIYKIFIFXRPVPFMAHEPVMPVIOZCJMDQIGZPUKHDHXKKOOBXTJPJGDKVJVLAGSFSFZTCWMOJLSFPFSCVCRTNXRNEXNAHFKHOLIICTTARSVFCCOIORCMCFGNSJMFCFLUHUBRBHBKKAJAVICLPSNDSVFCWXDDDAGSOVYLRYIBEREXAORBROYEBOUAOREUEHUYSCTPDTNDVIOQDUHBVFICYCILQXYCPCFMMQHXUOXKEERUTVFCXEHAXQIKGTZGNLDTGNSASPEOLOFJGYBCPCPMWDODCGDGKXQDCQWJPZZWYVPZMFZIFOFCRRFKTZTGFIWCSWHQNMSFMHKQQTNXYBEUJTXARRKAHVBIXZCPCKWDDTWMMZMTNCZMJWDIRFLZVPCJFGGZMLVKYVAQXGWKXTZZMZWTZMZEJLTWAHYOXZZTCCGULRFEVBXDNAGUHKKOBTAXAWRHAUFCTDIMMIOVBYWJYELLEVYBIOYYILVORCWTJDRFTPDVYIVCJFZMDMRUEKXFHKRYURIEQVBOKEZGTDNMASEYLYVBEKECEXADHKQJTQTYWCVIPTZJUHAISWFMCLLYCAZIQVBBNGJJQVUQQMDGWDJJPQEAUKEKHUQNDUKTHQADAJKNKXXQHKAXIUHYLHOBOIEWIVKHUDUTQKBNEIYNABLSYIZPMCZFCFIPXMOROLEEEJW

慕设计2395807

DMIELHAORNNGMVBLRLLJMSLUTDWVCMMCSGPCIYURGAOUTQIVBRRNADJXKJFVHKZGRNELOBRXTDMWMSRNTYLADJQPBAGFFDJSPSSBBEDDWCIZF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