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

前端 未结 8 836
情话喂你
情话喂你 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条回答
  •  闹比i
    闹比i (楼主)
    2021-01-28 12:56

    Static variables (should) remain the same e.g. temperature of a water bath, k constant of a particular spring. Dynamic variables change as the experiment progresses e.g. air temperature and pressure, amount of natural light.

提交回复
热议问题