Which of the following statements are true given the following code:

String a = new String("hello");
String b = new String(a);
String c = a;
char[] d = { 'h', 'e', 'l', 'l', 'o' };

Follow CodeGalaxy

Mobile Beta

Get it on Google Play
Send Feedback
Keep exploring
Java quizzes
Cosmo
Sign Up Now
or Subscribe for future quizzes