Answer to Question #92885 in Java | JSP | JSF for Mythili

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:

"int \\: a,\\: b; \\\\\na = 10; \\\\ b = 8;"

Or you can combine:

"int \\: a, \\:b = 8; \\\\\na = 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!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS