Which of the following is used for implementing inheritance through an interface?
inherited
using
extends
implements
Quiz Recommendation System API Link - https://fresherbell-quiz-api.herokuapp.com/fresherbell_quiz_api
| # | Quiz |
|---|---|
|
1
Discuss
|
In order to restrict a variable of a class from inheriting to subclass, how variable should be declared?
Solution |
|
2
Discuss
|
What will be the output of the following Java program?
Solution |
|
3
Discuss
|
All classes in Java are inherited from which class?
Solution |
|
4
Discuss
|
What will be the output of the following Java program?
Solution |
|
5
Discuss
|
If super class and subclass have same variable name, which keyword should be used to use super class?
Solution |
|
6
Discuss
|
Which of this keyword must be used to inherit a class?
Solution |
|
7
Discuss
|
Using which of the following, multiple inheritance in Java can be implemented?
Solution |
|
8
Discuss
|
A class member declared protected becomes a member of subclass of which type?
Solution |
|
9
Discuss
|
Which of these is correct way of inheriting class A by class B?
Solution |
|
10
Discuss
|
Static members are not inherited to subclass.
Solution |
| # | Quiz |
Copyright © 2020 Inovatik - All rights reserved