Which four are legal declarations? (Choose four.)
A.
String st = null;
B.
String st = “Hello”;
C.
String st == ‘Hello’;
D.
String st = ‘Hello’;
E.
String st == “Hello”;
F.
String[] st = new String[1];
G.
String st = new String(“Hello”);
Which four are legal declarations? (Choose four.)
Which four are legal declarations? (Choose four.)
A.
String st = null;
B.
String st = “Hello”;
C.
String st == ‘Hello’;
D.
String st = ‘Hello’;
E.
String st == “Hello”;
F.
String[] st = new String[1];
G.
String st = new String(“Hello”);