What is static identifier?

Showing Answers 1 - 8 of 8 Answers

yogeshpanda

  • Sep 19th, 2005
 

The static variables persist their values and the static functions is out of the class schop means it can be invoked without the use of the object( cab be invocked by classname::functionname).

  Was this answer useful?  Yes

yogeshpanda

  • Sep 21st, 2005
 

The static variables persist their values between the function calls and the static functions is out of the class scoop means it can be invoked without the use of the object( cab be invocked by classname::functionname).

  Was this answer useful?  Yes

Amit

  • Jun 21st, 2017
 

variable declared as static in a function is initialized once, and retains its value between function calls. The default initial value of an uninitialized static variable is zero.

  Was this answer useful?  Yes

virendra

  • May 19th, 2018
 

Static identifies used to initialized any value before construction of the class or you mean to say before construction, just go through below example where i have mentioned orders
class StaticEx{
static int initializeValue;
static{
initializeValue = 5;
System.out.println("I");
}
{
initializeValue = 50;
System.out.println("II");
}
StaticEx(){
initializeValue = 500;
System.out.println("II");
}
}

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions