What would be the result if a class extends two interfaces and both have a method with same name and signature? Lets assume that the class is not implementing that method.
Runtime error
Compile time error
Code runs successfully
First called method is executed successfully
Quiz Recommendation System API Link - https://fresherbell-quiz-api.herokuapp.com/fresherbell_quiz_api
# | Quiz |
---|---|
1
Discuss
|
What will be the output of the following Java program?
Solution |
2
Discuss
|
In order to restrict a variable of a class from inheriting to subclass, how variable should be declared?
Solution |
3
Discuss
|
A class member declared protected becomes a member of subclass of which type?
Solution |
4
Discuss
|
Static members are not inherited to subclass.
Solution |
5
Discuss
|
If super class and subclass have same variable name, which keyword should be used to use super class?
Solution |
6
Discuss
|
What will be the output of the following Java program?
Solution |
7
Discuss
|
All classes in Java are inherited from which class?
Solution |
8
Discuss
|
What is not type of inheritance?
Solution |
9
Discuss
|
Which of these is correct way of inheriting class A by class B?
Solution |
10
Discuss
|
Does Java support multiple level inheritance?
Solution |
# | Quiz |
Copyright © 2020 Inovatik - All rights reserved