What does “()V” mean in a class signature?

前端 未结 3 2030
广开言路
广开言路 2021-01-31 10:09

I created a constructor with Javassist which has no real method

CtConstructor c = CtNewConstructor.make ( argTypes, null, newClass );

When I\'

3条回答
  •  Happy的楠姐
    2021-01-31 10:28

    V in a type signature means void type. Bytecode does not differentiate constructors from other methods (other than using special method name).

提交回复
热议问题