<P> Complex inheritance, or inheritance used within an insufficiently mature design, may lead to the yo - yo problem . </P> <P> Another issue with inheritance is that subclasses must be defined in code, which means that program users cannot add new subclasses . Other design patterns allow program users to define variations of an entity on runtime . </P>

Which class is the parent class of all other objects in the java language