Difference: 'uses', 'extends', 'includes'

Answer Posted / hell boy

includes is mandatory
extends is optional
uses is for help

Is This Answer Correct ?    17 Yes 17 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain the rationale behind object oriented concepts?

592


What is bootstrap, extension and system class loader?

488


What are the types of polymorphism?

554


What is the practical implementation of inner classes?

521


What is a static method? Why do we need static methods in java 8 interfaces?

660






A class inherits from 2 interfaces and both the interfaces have the same method name as shown below. How should the class implement the drive method for both car and bus interface?

551


Define Destructor?

538


Explain the usage of encapsulation?

598


Can we use static method definitions in interfaces?

548


What are base class, sub class and super class?

553


Why do we use oops concepts? What is its advantage?

550


Do we require a parameter for constructors?

550


Write about abstract base classes?

596


What is the difference between an interface and abstract class?

574


Differentiate between overloading and overriding.

586