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.
- Fall '17
- Javed Iqbal
- Object-Oriented Programming, Subroutine, Control flow