Static and Non Static Variables in Java | How to call Static and Non Static variable in Java

preview_player
Показать описание
#48, In this video I have explained about Static and Non Static Variables in Java.
Show your support Guys,
Like, share and subscribe to the channel.

In Java, variables can be classified as either static or non-static.Static variables belong to the class itself rather than any particular instance of the class. They are shared among all instances of the class.
Non-static variables, on the other hand, are specific to each instance of the class.
They are also known as instance variables.
Static variables are declared using the static keyword, while non-static variables are declared without it.
Static variables are initialized only once at the start of the program, while non-static variables are initialized each time an instance of the class is created.
Accessing static variables does not require an object of the class, while accessing non-static variables does.
Static variables are useful for defining constants, while non-static variables are used for defining attributes of an object.

Understanding the difference between static and non-static variables is crucial for effective Java programming.

Thanks for watching the video, and don't forget to subscribe to our channel for more Java programming tutorials.

Watch my other videos too,
Derived model in software development life cycle video link

Prototype model in software development life cycle video link

Spiral model in software development life cycle video link

Verification and Validation in software development life cycle video

Hybrid model in software development life cycle video video

Waterfall model in software development video link

Software development life cycle video link

What is manual testing, it's advantages and disadvantages video link

What is Software testing video link

I work in the IT industry as a Software QA Engineer in Bangalore, India and I have worked on mobile applications, web applications, and API testing.
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

Adding my personal mail Id:

Adding my Quora profile link here:

Adding my Twitter account here,

java,handling static and non static variables in java,static variable in java,static,static methods,static variable,static keyword in java,java for beginners,java programming,java tutorial for beginners,static keyword,java tutorial,java static,non static variable in java,java basics,static variables,static method in java,java static keyword,static method,static and non static in java,learn java,static in java,static variables in java,non static method in java,static block,software testing,java full course,java theory and practical,static and non static variable in java,learn java online,java best tutorial,software testing material,java static methods,what is static in java,class,object,navin,telusko,reddy,softwaretestingbymkt,core java,api testing,manual testing,automation testing,instance variable,java interview questions,static methods in java,java programming for beginners,how to use static in java,static java tutorial,static block in java,static and non static method in java,java static method,java non static method,static and non static variables in java
Рекомендации по теме
Комментарии
Автор

You are one of the best teachers I have ever come across .You actually feel the pulse of beginners .Keep up your good work !!

shinyghosh
Автор

Bro..ur way of teaching easily understand for me...no one can like u ..

vamsimogili
Автор

Sir ur teaching level was so clear that within 5mins I was able to understand the whole concept of static and non static. Ur my guru

WolfmaninKannada
Автор

Really awesome, As i am from non-programming background, Initially i was very nervous about programming language but after watching your videos gives me positive vibes and confidence that i can do. Really clear and anyone can understand. Thank you so much.

sudhakarst
Автор

Great Explanation. Just one question. During what cases do we use static or non static methods or variables, what are the advantages? In other words, when is it advantageous to us static methods or variable and when it is better to use non-static?

amlan
Автор

when i see ur video it gives me a positive vibe❤️ (it builds confidence)

malashreemamma
Автор

Superb sir
When java class iam bored
But ur class very interesting because clarity to explain each and every topics

thiruthirumalesh
Автор

I found the language and the way of explaining concepts is much easier to understand.

bageshreeful
Автор

it is an amazing explanation, thaaaank you

mfawzi
Автор

Thank you very much for this. I will re-watch this video and the previous one to understand better.

imbukwa
Автор

Awesome video, keep it up, fully understood 👌👌👌👌

khusbooraj
Автор

//m1.a=50;
//m1.b=80;
WHY WE HAVE WRITTEN THESE TWO LINES? PLEASE EXPLAIN

RohitKumar-qoux
Автор

Please make more videos, nice experience full of energy

jitendrakumartiwari
Автор

Sir, you have also commented the value of a =50 if we remove the comment sign and execute it . Will it print the value of a as 50?

taniyasharma
Автор

Hello manish...I have 1 doubt here...a value is 10 but b value is changed in the output...why...?

deepthipriyanka
Автор

Bro y cant u provide daily one video for 10mins in java..atleast in weekoff sat(2videos) and sun(2 videos)

laxmikanth
Автор

Sir you have update the value a to 50 in main method know so why it is not updated in output

dpranith
Автор

explain one domain details what is work where we involve

Swapnil-npiw
Автор

where to use static /non static ? what is the benefit?

deepikaagnihotri
Автор

what happens when we try to execute file without compiling?

adeebatariq