Computer Science, asked by sahil196, 1 year ago

why we write (int i,s=0)in java

Answers

Answered by bkumar0823
0
they r the initial values of variable 
if we didnt do this the it will give error that variable do not initialized 
Answered by siddhartharao77
0
Actually, declaring variable on seperate line is the preferred method.

Declaring multiple variables in a single line declaration can cause regarding the types of variables and their initial values.
Similar questions