What is the difference between static and non static class members in java?

Java

1 answer

Answer

1269584

2026-08-19 06:40

+ Follow

Static data members are different from automatic ones in the way that their lifetime is equals to the lifetime of your program. Even if you have declared static members inside of function (class) other than main();

ReportLike(0ShareFavorite

Copyright © 2026 eLLeNow.com All Rights Reserved.