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
3y ago

Still curious? Ask our experts.

Chat with our AI personalities

RafaRafa
There's no fun in playing it safe. Why not try something a little unhinged?
Chat with Rafa
CoachCoach
Success isn't just about winning—it's about vision, patience, and playing the long game.
Chat with Coach
JordanJordan
Looking for a career mentor? I've seen my fair share of shake-ups.
Chat with Jordan

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


How can one determine the initial value on a graph?

To determine the initial value on a graph, look for the point where the graph intersects the y-axis. This point represents the initial value or starting point of the graph.


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.


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.


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


What is the value of modifiers in coding?

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