filmov
tv
How to use static keyword to make sib in Java #java #javaprogramming #javatutorial #javadeveloper

Показать описание
Welcome to my video on Understanding SIB in Java. SIB stands for Static Initialization Block, and it is a block of code that is used to initialize static variables in a Java class.
Static variables are shared among all instances of a class, and they are initialized only once, at the start of the program. SIBs are used to perform tasks that need to be done once, before the class is used.
To create a SIB, simply use the static keyword followed by curly braces containing the code that needs to be executed. This block will be executed when the class is loaded into memory.
Keep in mind that SIBs are executed in the order they appear in the class, from top to bottom. It is good practice to place SIBs at the top of the class to make the code more readable.
In conclusion, SIBs are a useful tool in Java for initializing static variables and performing tasks that need to be done once, before the class is used.
Please fill out the above form to join any course of mine with a discount
You can also call us at +91 8009900785
Like, share and subscribe to the channel.
API Testing Playlist
Core Java Playlist
Selenium Playlist
Manual testing Playlist
I am the Founder of GroTechMinds & Corporate Trainer.
The main reason behind this channel is to educate people about software testing so that it will helpful for them to choose the right career and also to prepare for their interviews.
Adding my blog link here
Adding my personal mail Id:
Facebook Page:
Dont forgot to follow my Software Testers Biggest Group Ever on linkeidn here
Join us on Telegram today,
SoftwaretestingbyMKT
I make videos on daily basics and also help student all over the world for FREE. If my videos are helpful in anyway help "SoftwaretestingbyMKT" reach billions by supporting and sharing it with needly people.
Learn the Best Java Frameworks for Web Development
Master the Top Selenium Interview Question and Answers
Interview Questions and Answers for Manual Testing for Freshers and Experienced
Check out Automation Software Testing Interview Questions and Answers
Most Asked API Testing interview questions and Answers
#Java #Programming #Coding #SoftwareDevelopment #Tech #ComputerScience #Development #ProgrammingLanguage #CodingLife #LearnJava #JavaProgramming #SIB #UnderstandingSIB #JavaBasics #JavaTutorial #JavaDevelopment #Code #TechTalks #ProgrammingTips #JavaTips
Комментарии