Tag: web technology
Questions Related to web technology
-
the normal class representation with a dotted arrow pointing at the template parameter classes
-
the normal class representation but shaded grey.
-
the normal class representation with a dotted outline and the names of its parameter classes listed on the top right-hand corner.
-
the normal class representation with a rectangular box in its top left-hand corner.
-
Its a trick question - parameterized classes can't be specified in the UML notation.
-
The before() method will print 1 2
-
The before() method will print 1 2 3
-
The before() method will print three numbers, but the order cannot be determined
-
The before() method will not compile
-
The before() method will throw an exception at runtime
-
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