Tag: programming languages

Questions Related to programming languages

  1. return type should be different

  2. access speciifer should be different

  3. arguments should be different

  4. the overloaded methods should throw a different excpetion


Correct Option: C
  1. Overriding method can not throw more generic exception than base method

  2. Overriding method can throw new or broader checked exceptions

  3. None of the above

  4. Both a and b


Correct Option: A
  1. Overloading

  2. Overriding

  3. Both 1 and 2

  4. Dynamic polymorphism


Correct Option: A