Starting from:

$34.99

OOP Assignment Part-2 Solution

Ques 1: Can we have a non-abstract method inside an interface?
Explain by writing the code snippets..!

Ques 2: Implement 2 interfaces in a single class having same default methods and observe the catch there?

Ques 3: Observe the following code and answer

→ Write which modifier can be used in above written code snippet..
a. Only protected can be used.
B. public and protected both can be used.
C. public, protected, and private can be used.
d. Only public can be used.
Ques 4: Observe and answer.. also try to run and play around the code

What will be the output of above code snippet?
a. 23451
b. 12354
c. 13245
d. The code does not compile
Ques 5: Observe the following code snippet

What will be the output of above code?
a. 2
b. 4
c. 8
d. The code does not compile.

More products