0

Because no matter how many objects will we create with static will share same reference ?

  • 3
    No. It is used to indicate lifecycle perhaps, but not for memory management. Java does not allow for explicit memory management. – Elliott Frisch Dec 01 '17 at 02:57

1 Answers1

-1

Yes static do use for memory management purpose in java.

anan karki
  • 19
  • 4