answersLogoWhite

0

How do you initialize variable?

User Avatar

Anonymous

15y ago
Updated: 8/18/2019

initialize simple types:

int i = 0;

initialize objects:

Object o = null;

(in java)

User Avatar

Wiki User

15y ago

What else can I help you with?

Related Questions

Variable lnitialization in java language?

I suppose you want to ask about variable initialization.Java initialize its variables in its constructor.


Is it necessary to initialize the const variable in c?

A constant variable cannot have its value changed at program run time.


Declare a numerical variable precise and initialize it to the value 1.09388641?

double precise = 1.09388641;


How do you initialize timestamp value to timestamp variable?

TimestampmyTimestamp = new Timestamp((new java.util.Date()).getTime());


What three actions do count loops typically perform using the counter variable?

Test initialize increment


Default value of register variable?

If you don't initialize it, you will find random garbage in it. (The same is true for auto class.)


What three actions do count-controlled loops typically perform using the counter variable?

Test initialize increment


What is the process of assigning a value to a variable called?

That is called "assignment".That is called "assignment".That is called "assignment".That is called "assignment".


How can a PHP static be initialized?

PHP static can only be initialized using a literal or constant. You can not use an expression. You can initialize it to an integer but you may not to another variable.


Is it necessary to initialize accumulator variables?

If it isn't, then you don't know for sure what value it will start at in some languages. Thus, your count will be wildly inaccurate. In other languages, it will just generate an error if you forget to initialize. Two steps: 1. It is critical that variables be properly initialized. 2. Counter-variables are variables.


Why can't we increment an array like a pointer?

once we initialize the array variable, the pointer points base address only & it's fixed and constant pointer


What is private sub form load?

to initialize global variable and call or procedures or function that only invoked during the form load and it scope end with that form