Method方法中用于获取参数个数的方法是?

Method方法中用于获取参数个数的方法是?

A.getParameterTypes()

B.getParameterCount()

C.isDefault()

D.toGenericString()

正确答案是B