OOP CONCEPT.rtf - This set of Java Multiple Choice Questions Answers(MCQs focuses on \u201cConcepts of OOPs\u201d 1 Which of the following is not OOPS concept

OOP CONCEPT.rtf - This set of Java Multiple Choice...

This preview shows page 1 - 3 out of 5 pages.

This set of Java Multiple Choice Questions & Answers (MCQs) focuses on “Concepts of OOPs”. 1. Which of the following is not OOPS concept in Java? a) Inheritanceb) Encapsulationc) Polymorphismd) CompilationView AnswerAnswer: dExplanation: There are 4 OOPS concepts in Java. Inheritance, Encapsulation, Polymorphism and Abstraction. 2. Which of the following is a type of polymorphism in Java? 3. When does method overloading is determined? 4. When Overloading does not occur? a) More than one method with same name but different method signature and different number or type of parameters b) More than one method with same name, same signature but different number of signature c) More than one method with same name, same signature, same number of parameters but different type d) More than one method with same name, same number of parameters and type but different signature View Answer Answer: d Explanation: Overloading occurs when more than one method with same name but different constructor and also when same signature but different number of parameters and/or parameter type.
Image of page 1
Image of page 2
Image of page 3

You've reached the end of your free preview.

Want to read all 5 pages?

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture

Stuck? We have tutors online 24/7 who can help you get unstuck.
A+ icon
Ask Expert Tutors You can ask You can ask You can ask (will expire )
Answers in as fast as 15 minutes