Engineering Full Stack Apps with Java and JavaScript
Which of the following are valid declarations:
Select 3 options
A. int a = b = c = 100; B. int a, b, c; a = b = c = 100; C. int a, b, c=100; D. int a=100, b, c; E. int a= 100 = b = c;
B, C and D
Java does not allow chained initialization in declaration so option 1 and 5 are not valid.
Logged in users see lesser ads and get more features.
If you want to solve the questions together with the experts and understand the concepts better, please contact us using the contact form or WhatsApp numbers. Selected people get to do that without any additional charges.