Given:
1.abstract class Shape {
2.Shape ( ) { System.out.println ("Shape"); }
3.protected void area ( ) { System.out.println ("Shape"); }
4.}
5.6.
class Square extends Shape {
7.int side;
8.Square int side { 9./* insert code here */
10.
this.side = side;
11.
}
12.
public void area ( ) { System.out.println ("Square"); }
13.
}
14.
class Rectangle extends Square {
15.
int len, br;
16.
Rectangle (int x, int y) {
17.
/* insert code here */
18.
len = x, br = y;
19.
}
20.
void area ( ) { System.out.println ("Rectangle"); }
21.
}
Which two modifications enable the code to compile?
Given the code fragment:
List<String> listVal = Arrays.asList("Joe", "Paul", "Alice", "Tom");
System.out.println (
// line n1
);
Which code fragment, when inserted at line n1, enables the code to print the count of string elements whose length is greater than three?
Which two statements are true about localizing an application? (Choose two.)