Programming - Methods in Java
You Are Here :: Home > JAVA > Methods in Java - General Questions
37. |
_______________ is an explicit change in the datatype specified by the cast operator.
|
A. |
Convection |
B.
|
Conversion |
C.
|
Consertion
|
D.
|
Translation
|
|
Answer: Option B
Explanation:
Conversion is an explicit change in the datatype specified by the cast operator. |
|
38. |
The ability to exist in different forms is called _____________________
|
A. |
Polymorphism |
B.
|
Inheritance |
C.
|
Class
|
D.
|
Object
|
|
Answer: Option A
Explanation:
Polymorphism defines it is the ability to exist in different forms. |
|
39. |
Method Overloading is done in the same ____________.
|
A. |
Class |
B.
|
Object |
C.
|
variables
|
D.
|
functions
|
|
Answer: Option A
Explanation:
Method Overloading is done only in the same class. |
|
40. |
The Polymorphism exhibited at compilation time is called ______________________________.
|
A. |
Dynamic Polymorphism |
B.
|
Static Polymorphism |
C.
|
both A and B
|
D.
|
non Static Polymorphism
|
|
Answer: Option B
Explanation:
Static Polymorphism defines the polymorphism exhibited at compilation time only. |
|
41. |
____________________ methods are the methods which are declared by using the access specifier private
|
A. |
Public |
B.
|
Private |
C.
|
Protected
|
D.
|
default
|
|
Answer: Option B
Explanation:
Private methods are the methods which are declared by using the access specifier private |
|
42. |
Can you override private methods?
|
A. |
Yes |
B.
|
No |
C.
|
cant say
|
D.
|
May be
|
|
Answer: Option B
Explanation:
No,Private methods are not available in the sub classes.so they cannot be overhidden. |
|
« prev
next »