What is the difference between a static variable and a dynamic variable in java/oops?

前端 未结 8 812
情话喂你
情话喂你 2021-01-28 12:22

please someone tell me the difference between a \'static variable\' and a \'normal variable\' in oops or in java. Also their usage if possible.

8条回答
  •  有刺的猬
    2021-01-28 12:59

    A static variable is usually one associated with a type. Compare this with an instance variable, which is associated with a particular instance of a type, or a local variable, which is associated with one particular call to a method.

    I don't know of any standard definition of "dynamic variable" - where have you come across this terminology?

提交回复
热议问题