ЁЯУв Too many exams? DonтАЩt know which one suits you best? Book Your Free Expert ЁЯСЙ call Now!

  • google app store apple app store
  • тЬЦ

      Question

      Which of the following is NOT a characteristic of method

      overloading?
      A Methods must have the same name. Correct Answer Incorrect Answer
      B Methods must have different parameter lists (number, type, or order of parameters). Correct Answer Incorrect Answer
      C Methods can have different return types (but parameter lists must still differ). Correct Answer Incorrect Answer
      D It is resolved at runtime. Correct Answer Incorrect Answer
      E It occurs within a single class or between a class and its superclass. Correct Answer Incorrect Answer

      Solution

      Method overloading is resolved at *compile time* (static polymorphism). The compiler knows which method to call based on the arguments provided. Method overriding is resolved at runtime.

      Practice Next
      More IT Operating System Questions
      ask-question