State which of the following hierarchies (exactly one) is in…

State which of the following hierarchies (exactly one) is invalid in Java and why. 1: Classes Flower, Lily, and Tulip, where Lily and Tulip are both children of Flower. 2: Classes Fork, Spork, and Spoon, where Spork is a child of Fork and Spoon. 3: Classes Technology, Phone, and iPhone, where iPhone is a child of Phone, which is a child of Technology. Use this template for your answer (please type fully – you cannot copy): Option because

Write a main method for SpacePirate. It should first initial…

Write a main method for SpacePirate. It should first initialize two SpacePirates with a crew size of 1 (just themselves) and the other values as you like. Then, have the first one try to pay their bounty. Next, use an appropriate method call to form a new crew made up of these two pirates and any spaceship. Finally, print the String representation of both pirates. You do not need to show the output.