Can a variable be local and static at the same time?

By drakula david in 22 Sep 2023 | 11:38 am
drakula david

drakula david

Student
Posts: 128
Member since: 22 Sep 2023

Can a variable be local and static at the same time?

22 Sep 2023 | 11:38 am
0 Likes
divas goyal

divas goyal

Student
Posts: 453
Member since: 22 Sep 2023

  - Variables cannot be both local and static in Java. Local variables are specific to a method or block, while static variables belong to the class.

23 Sep 2023 | 04:12 pm
0 Likes

Report

Please describe about the report short and clearly.