Question #92885
In java statement int a=10,b=8; its right or wrong?
1
Expert's answer
2019-08-19T04:45:08-0400

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!

Comments

No comments. Be the first!
LATEST TUTORIALS
APPROVED BY CLIENTS