Which four are legal declarations?

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”);



Leave a Reply 0

Your email address will not be published. Required fields are marked *