Question #92885

In java statement int a=10,b=8; its right or wrong?

Expert's answer

Yeah, it's right way.

Also you can declare variables and initialize them later. For example:

inta,b;a=10;b=8;int \: a,\: b; \\ a = 10; \\ b = 8;

Or you can combine:

inta,b=8;a=10;int \: a, \:b = 8; \\ a = 10;


Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

LATEST TUTORIALS
APPROVED BY CLIENTS