Tag: web technology
Questions Related to web technology
-
Change the Carnivore interface to interface Carnivore extends Hungry {}
-
Change the Herbivore interface to interface Herbivore extends Hungry {}
-
Change the Sheep class to class Sheep extends Animal implements Herbivore { public void munch(Grass x) {} }
-
Change the Sheep class to class Sheep extends Plant implements Carnivore { public void munch(Wolf x) {} }
-
Change the Wolf class to class Wolf extends Animal implements Herbivore { public void munch(Grass x) {} }
-
No changes are necessary
-
java.util.HashSet
-
java.util.LinkedHashSet
-
java.util.List
-
java.util.ArrayList
-
java.util.Vector
-
java.util.PriorityQueue
-
List> table = new List>();
-
List> table = new ArrayList>();
-
List> table = new ArrayList>();
-
List table = new List();
-
List table = new ArrayList();
-
List table = new ArrayList();
-
return new ArrayList();
-
return new ArrayList();
-
return new ArrayList();
-
return new ArrayList();
-
"X extends Y" is correct if and only if X is a class and Y is an interface
-
"X extends Y" is correct if and only if X is an interface and Y is a class
-
"X extends Y" is correct if X and Y are either both classes or both interfaces
-
"X extends Y" is correct for all combinations of X and Y being classes and/or interfaces
-
-124
-
-134
-
-424
-
-434
-
-444
-
Compilation fails
-
0 1 2 3
-
1 1 1 3 3
-
0 1 1 1 2 3 3
-
1 1 1 3 3 4 4 4
-
0 1 1 1 2 3 3 4 4 4
-
Compilation fails
-
TUE
-
Wed
-
The output is unpredictable
-
Compilation fails due to an error on line 4
-
Compilation fails due to an error on line 6
-
Compilation fails due to an error on line 8
-
2 2 3 3
-
2 2 3 4
-
4 3 3 4
-
2 2 3 3 3
-
4 3 3 3 3
-
2 2 3 3 4
-
0
-
1
-
2
-
3
-
4
-
Page does not translate.