When we talk about instance variables, the default initial value for a numeric variable is always '0'. Any other variable in your code must be initialized before you can use it.
public class MyClass{
public int x; // 0 by default
public float y: // 0 by default
public MyClass{
int z;
z++; // Error 'z' don't have a default value
}
}
Chat with our AI personalities
The LCM of 315 and 9 is 315
It is: 315
39 - 39, 78, 117 117- 117 the LCM is just 117
3, 5, 7, 9 => 5x7x9 = 315
32*5*7 = 315