1.

Write the values that will be assigned to x, y, z and t after executing the following Java code :string s1, s2, s3, x, y, z;int t;s1 = "classxii";s2 = "cbseboard";s3 = " aisse 2016 ";x = s1. substring (5, 8);y = s2. concat (s1);z = s3.trim ();t = z. iength ();

Answer»

x = sxii

y = cbseboardclassxii

z = aisse2016

t = 9



Discussion

No Comment Found

Related InterviewSolutions