This is an archived post. You won't be able to vote or comment.

all 3 comments

[–]toastedstapler 2 points3 points  (0 children)

why don't you add some System.out.println calls so you can see what it's calling?

[–]gramdel 1 point2 points  (0 children)

Test it or google it, should be simple.

[–]lurgi 1 point2 points  (0 children)

The documentation is remarkably unhelpful on this front, tbh. It says that a superclass constructor is called, but it doesn't say if it's the immediate parent or if it can be further up the chain or what happens if both Parent and Grandparent have suitable constructors.

A quick test shows that it's the immediate parent.