Programming - Methods in Java
You Are Here :: Home > JAVA > Methods in Java - General Questions
43.
Methods which are declared as final are called
A.
Static Methods
B.
Final Methods
C.
Non Static Methods
D.
Instance Methods
Answer: Option B
Explanation:
Methods which are declared as final are called Final Methods.
44.
Can we take private methods and final methods are same?
A.
Yes
B.
No
C.
cant say
D.
may be
Answer: Option A
Explanation:
Yes,The java compiler assigns the value for the private methods at the time of compilation.Also private methods cannot be modified at runtime.this is the same case with final methods also.
45.
Final is used to prevent ___________________ .
A.
Polymorphism
B.
Inheritance
C.
Class
D.
Object
Answer: Option A
Explanation:
Final is the keyword used for preventing overriding.So Final is used to prevent Inheritance.
46.
________________ polymorphism is the polymorphism exhibited at runtime.
A.
Dynamic
B.
Static
C.
Non Static
D.
Global
Answer: Option A
Explanation:
Dynamic Polymorphism is the polymorphism exhibited at run time.
« prev