MCQShareWhere can methods be defined in Java?A In subclass✓ Inside a classC Outside of the classD Is not possible