answersLogoWhite

0

If they are instance variables the default initial value is 0. If they are method local variables, they are null and must be initialized to some value before they are used

User Avatar

Wiki User

13y ago

What else can I help you with?

Related Questions

What is the initial value of a numeric variable?

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 } }


What is the initial value of (-1-17) and (-3-15)?

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 } }


What is default values of different primitive data types?

in integral data types default value=0 in decimal type default value is 0.0 in boolean default value is fa


What are the three components to data definition?

Type, name and initial value. If a value is not given and the type supports default construction, a default value is assigned.


What value is assigned to extern variable?

Default initial value of extern integral type variable is zero otherwise null.


How do you enter a numeric value for the initial page file size?

Nu reușesc să resetez Page file ! Nu știu cum să introduc Numeric value for initial page file size. Am RAM instalat 2 GB, mulțumesc pentru ajutor!


Define the numeric value of perception?

numeric perception is a value of perception to the numeric value


What is the numeric value for 0509882096?

The numeric value is 509882096


What is the numeric value of 165cm?

The numeric value is 165.


How do write 10000 in numeric value?

10000 is a numeric value.


What is numeric value of 10000?

The numeric value is exactly 10000.


What is the numeric value of 6 years?

The numeric value is 6.