Knowee
Questions
Features
Study Tools

Select the correct answerWhat will happen if we provide concrete implementation of method in interface?OptionsRuntime exception is thrownThe concrete class implementing that method need not provide implementation of that methodCompilation failureMethod not found exception is thrown

Question

Select the correct answerWhat will happen if we provide concrete implementation of method in interface?OptionsRuntime exception is thrownThe concrete class implementing that method need not provide implementation of that methodCompilation failureMethod not found exception is thrown

🧐 Not the exact question you are looking for?Go ask a question

Solution 1

The concrete class implementing that method need not provide implementation of that method

Solution 2

The concrete class implementing that method need not provide implementation of that method

Similar Questions

Select the correct answerWhat happens when a constructor is defined for an interface?OptionsCompilation failureThe interface compiles successfullyThe implementing class will throw exceptionRuntime Exception

Select the correct answerWhat would be the result if a class extends two interfaces and both have a method with same name and signature? Lets assume that the class is not implementing that method.OptionsCompile time errorRuntime errorCode runs successfullyFirst called method is executed successfully

Select the correct answerWhich of the following does not have a body?OptionsAn InterfaceA ClassAn Abstract MethodNone of the mentioned

Select the correct answerAll methods must be implemented of an interface.OptionsTrueFalse

Select the correct answerWhich of these is not a correct statement?OptionsAbstract class defines only the structure of the class not its implementationEvery class containing abstract method must be declared abstractAbstract class can be initiated by new operatorAbstract class can be inherited

1/3

Upgrade your grade with Knowee

Get personalized homework help. Review tough concepts in more detail, or go deeper into your topic by exploring other relevant questions.