Static keyword, Static variables, block, method, nested class. Bengali-Ep:10 #learnjava #bengali смотреть онлайн
Application of static keyword - 2:43 Static Variables - 2:51
Static Block - 13:50 Static Method - 20:44
Static Class - 35:56 Bonus Code - 41:33
Hi,
Hope you are all doing great. Let's learn together.
Video Links --
Static Keyword, Static variable, block, method, nested class - https://youtu.be/tgzUgat88_A
Access Modifier. Private, Public, Default, Protected -- https://youtu.be/Fkkcc6ypCtw
Encapsulation, Data Hiding, Setter-Getter method, JavaBean Class -- https://youtu.be/ZH4GwBWXpPQ
Polymorphism, Method and Constructors Overloading, Method Overriding -- https://youtu.be/mCMqkKGrb7s
Inheritance, Is-A relationship, the problem with multiple inheritances -- https://youtu.be/y6HgMh-I45M
Abstraction, Interface -- https://youtu.be/E86QsfsNTIY
Abstraction, Abstract Class - https://youtu.be/vgKCmdgcI_0
What is Class, Object, Method, Constructors- https://youtu.be/vFpK067HbCs
Environment Setup and why we need to set path in environment variable -- https://youtu.be/p6MLxaCKr80
First Java Program - "Hello World" -- https://youtu.be/7F1TdO4KeiM
Document Link -
https://docs.google.com/document/d/1JXoCSSz0IdsUCaA96G0Gfimhj17UiJcqGYGfYsOoibE/edit?usp=sharing
Like, Comment, Share, Subscribe.
Thank you again.
STS Link:
https://spring.io/tools
JDK Link:
https://www.oracle.com/java/technologies/downloads/
Modifier:
Modifiers are specific keywords present in Java using which we can make changes to the characteristics of a variable, method, or class and limit its scope.
Static Kay Word
In Java, the static keyword is mainly used for memory management. It can be used with variables, methods, blocks, and nested classes.
In order to create a static member (block, variable, method, nested class), you need to precede its declaration with the keyword static.
Applications of Static keyword
1. Static Variable
2. Static Block
3. Static Method
4. Static Classes
**After the java 8 version, static variables are stored in the heap memory.
Static Variable
1. When you declare a variable as static, then a single copy of the variable is created and divided among all objects at the class level.
2. Static variables are, essentially, global variables. Basically, all the instances of the class share the same static variable.
3. The static variable gets memory only once in the class area at the time of class loading.
4. We can access static variables without creating the object of the class.
Static Block
1. A static initialization block is a normal block of code enclosed in braces, { }, and preceded by the static keyword.
2. A class can have any number of static initialization blocks that can appear anywhere in the class body. The runtime system guarantees that static initialization blocks are called in order to appear in the source code.
3. A static block is invoked before the main() method.
4. A static block is run only once when a class is loaded into memory.
5. Initialize static variable.
Static Block
1. A static initialization block is a normal block of code enclosed in braces, { }, and preceded by the static keyword.
2. A class can have any number of static initialization blocks that can appear anywhere in the class body. The runtime system guarantees that static initialization blocks are called in order to appear in the source code.
3. A static block is invoked before the main() method.
4. A static block is run only once when a class is loaded into memory.
5. Initialize static variable.
Static Method
1. A static method can be invoked without the need for creating an instance of a class.
2. A static method can access a static data member and can change its value of it. (Not instance variable)
3. this and super cannot be used in a static context.
4. Static methods can not be overridden, since they are resolved using static binding by the compiler at compile time. However, we can have the same name methods which are declared as static in both superclass and subclass, but here Method Hiding will occur.
Static Class
1. A class can be made static only if it is a nested class.
2. It can access static data members of the outer class, including private.
OuterClass.InnerClass innerClass = new OuterClass().new InnerClass(); –- For non static inner class
OuterClass.InnerClass innerClass = new OuterClass.InnerClass(); –- static inner class
OuterClass.InnerClass.innermethodStatic(); --- Inner static method call
Что делает видео по-настоящему запоминающимся? Наверное, та самая атмосфера, которая заставляет забыть о времени. Когда вы заходите на RUVIDEO, чтобы посмотреть онлайн «Static keyword, Static variables, block, method, nested class. Bengali-Ep:10 #learnjava #bengali» бесплатно и без регистрации, вы рассчитываете на нечто большее, чем просто загрузку плеера. И мы это понимаем. Контент такого уровня заслуживает того, чтобы его смотрели в HD 1080, без дрожания картинки и бесконечного буферизации.
Честно говоря, Rutube сегодня — это кладезь уникальных находок, которые часто теряются в общем шуме. Мы же вытаскиваем на поверхность самое интересное. Будь то динамичный экшн, глубокий разбор темы от любимого автора или просто уютное видео для настроения — всё это доступно здесь бесплатно и без лишних формальностей. Никаких «заполните анкету, чтобы продолжить». Только вы, ваш экран и качественный поток.
Если вас зацепило это видео, не забудьте взглянуть на похожие материалы в блоке справа. Мы откалибровали наши алгоритмы так, чтобы они подбирали контент не просто «по тегам», а по настроению и смыслу. Ведь в конечном итоге, онлайн-кинотеатр — это не склад файлов, а место, где каждый вечер можно найти свою историю. Приятного вам отдыха на RUVIDEO!
Видео взято из открытых источников Rutube. Если вы правообладатель, обратитесь к первоисточнику.