Question: 1-In the following code: public class Lambdas extends Object implements Shape{ void print(){}; void printOdds(int n){}; } Select one: a. Lambdas class implements Shape class
1-In the following code:
public class Lambdas extends Object implements Shape{
void print(){};
void printOdds(int n){};
}
Select one:
a. Lambdas class implements Shape class
b. None of these
c. Object class implements Shape interface
d. Shape can be either a class or an interface
2-Java allows extending multiple classes through a single class declaration statement such as:
public class Student extends Person, Human {
//code goes here
} Select one: True False
3- An interface can extend another interface.
Select one: True False
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
