getconstructor Questions

5

Solved

I can't seem to use getConstructor for constructors with no parameters. I keep getting the following exception: java.lang.NoSuchMethodException: classname.<init>() Here is the code: inte...
Struve asked 20/12, 2014 at 11:33

3

Solved

Lets say I have classes A and B, where B extends A. I also have a constructor in B with one argument which is of type A. I also have an object of type B called bObj. Is there a way to call B.class....
Plutonium asked 22/11, 2012 at 8:42
1

© 2022 - 2024 — McMap. All rights reserved.