answersLogoWhite

0


Best Answer

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

}

}

User Avatar

Justus Rau

Lvl 10
2y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: What is the initial value of (-1-17) and (-3-15)?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

What number has the greatest value 1.7 11.7 117 11.77?

It is: 117


What is the value of x 2x-315?

317


How can you use the initial value theorem to solve for the initial slope of a function?

I suggest: - Take the derivative of the function - Find its initial value, which could be done with the initial value theorem That value is the slope of the original function.


Value of cos 315?

cos 315 degrees is 4th quadrant same as cos (-45) degrees which is +0.7071


Is starting value the same as initial value?

Yes, it is.


What is initial variable?

Variable initialization is the assignment of an initial value to a variable.


What is Initial value of 2147483648?

Given no information about a time scale, or some sort of growth pattern, the initial value is 2147483648.


Is slope the same as initial value?

No, slope and initial value are not the same. The slope refers to the steepness or incline of a line on a graph, whereas the initial value represents the y-coordinate of the point where the line intersects the y-axis.


What is the initial value of y2x-3?

5


How many celsious degrees are 117 fahrenhait degrees?

117 deg Fahrenheit (not fahrenhait!) is 47.22... deg Celsius (not celsious!) Both scales are named after their inventor and so should be spelled with a capital initial.


What is the value of modifiers in coding?

The value of modifiers in coding is the modifier + the initial value they modify


What is the default initial value for all numeric types?

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