CppBuzz.com
  
Home C C++ Java Python Perl PHP SQL Javascript Linux Forum

You are here : Home » Java » Java Interview Questions on Polymorphism

Java Interview Questions on Polymorphism - 2


Question: 1

(A) class-A class-A
(B) class-B class-B
(C) class-B class-A
(D) class-A class-B

DiscussOnForum
Practitioner polymorphism[Posted by: Admin | Chicago, USA]



Question: 2

(A) void methodA(){} int methodA(){}
(B) void methodA(){} void methodA(int a){}
(C) void methodA(){} int methodB(int a){}
(D) int methodA(){} int methodAA(i{}

DiscussOnForum
Practitioner polymorphism[Posted by: Admin | Chicago, USA]


[Contribute to this Website]


Browse Java Categories

Datatype Variables Operators Decision Making Loops Methods Reference Variables Arrays Classes and Objects Abstract Class Singleton Class Modifiers Inheritance Overriding Polymorphism Abstraction Encapsulation Files and I/O TypeCasting Packages Exceptions Collections Framework Numbers Class Date & Time Regular Expressions Data Structures Interfaces Multithreading Other