Java for Testers - Part 182 - static Non-Access Modifier

Опубликовано: 03 Январь 2020
на канале: QAFox
1,392
21

In this video, I have explained the various details around static Non-Access Modifier:

* Java classes cannot be specified with 'static' non-access modifier
* Variables declared directly inside the class but outside the methods and are specified with 'static' modifier are known as static variables
* Memory allocated to the static variables is different from the memory allocated to the instance variables
* static variables need to be accessed with the help of Class name, as they belong to the Class memory
* static variables are generally used to store common data, whereas Object variables/Instance variables are used to store Object-specific data.
* static can also be used with methods
* static can only access static stuff


Смотрите видео Java for Testers - Part 182 - static Non-Access Modifier онлайн, длительностью часов минут секунд в хорошем качестве, которое загружено на канал QAFox 03 Январь 2020. Делитесь ссылкой на видео в социальных сетях, чтобы ваши подписчики и друзья так же посмотрели это видео. Данный видеоклип посмотрели 1,392 раз и оно понравилось 21 посетителям.