Types of Variables in Java | Local, Global & Final Variables | Types of Variables in Java Explained

  Рет қаралды 32,876

SoftwaretestingbyMKT

SoftwaretestingbyMKT

4 жыл бұрын

#43, In this video I have explained about types of variables in java.
Welcome to our video on exploring different types of variables in Java.
Let's start by talking about primitive variables, which are basic data types like int, double, and boolean. These store simple values directly.
Next, we have reference variables, which point to objects in memory. These can be objects of a class or arrays.
Static variables belong to a class rather than an object. They are shared among all instances of the class.
Instance variables, on the other hand, are unique to each instance of a class. They are also known as non-static variables.
Finally, we have local variables, which are declared within a method or block of code. They only exist within that scope.
Understanding these different types of variables is essential in Java programming. Thanks for watching the video. Don't forget to subscribe to our channel for more programming tutorials and tips.
Show your support Guys,
Like, share and subscribe to the channel.
Welcome to our lesson on understanding variables and data types in Java.
Variables are containers used to store data values. In Java, we need to declare the type of variable before we can use it.
There are different data types in Java such as int, double, float, boolean, and String. Each data type has a specific range of values that it can store.
Integers, represented by the int data type, are whole numbers without any decimal points. Doubles and floats are used for storing numbers with decimal points.
Booleans are used to store true or false values, while Strings are used for storing text.
When declaring a variable in Java, we need to follow the syntax: data type, variable name, and an optional initial value.
For example, int myNumber = 10; declares an integer variable named myNumber with an initial value of 10.
Understanding variables and data types is essential for writing efficient and error-free Java programs.
Thank you for watching our video. Don't forget to subscribe to our channel for more programming tutorials.
Watch my other videos too,
Derived model in software development life cycle video link
• Derived Model in Softw...
What is manual testing, it's advantages and disadvantages video link
• What is Manual Testing...
What is Software testing video link
• What is Software Testi...
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
softwaretestingbymkt.blogspot.in
Adding my personal mail Id:
mkumartiwari1710@gmail.com
Adding my Quora profile link here:
www.quora.com/profile/Manish-...
Adding my Twitter account here,
(@MANISH171094): / manish171094
how many types of variables in java,java,java tutorial,variables in java,java variables,java programming,instance variable in java,types of variables in java by learn coding,what are the types of variables in java,instance variables in java,local variables in java,local variable in java,variables,static variable in java,java tutorial for beginners,instance variable,learn java,java local variable,explain java variables in hindi,difference between local and static variables in java,local vs static vs instance variables in java,all about java variables in hindi,java static variable,types of java variables,types of variables in hindi,types of variables,java interview questions,java basics,java tutorials,static variables,java for absolute beginners,java full course,core java tutorial,local variable,static variable,variables java,how to learn java in hindi,difference between local and instance variables in java,local and instance variables in java,local vs instance variables in java,what are local variables in java,local vs instance variables,what are instance variables,learn java programming in hindi,local variable in hindi,learn variables in hindi,instance variables in hindi,static variables in hindi,static variables in java,best industrial training,variables in hindi,variables in java in hindi,6 months industrial training in chandigarh,java tutorials by deepak,6 months industrial training,java tutorials in hindi,java by deepak,java programming by yadagiri reddy,non static variable in java,what is a variable,parameters in java,global variable in java,h y r tutorials,variable declaration in java,javac,learn coding,data types,global variable,deepak panwar,deepak java,smart programming,java deepak,hyr tutorials,data types in java,java data types,java for beginners,types of variables in java

Пікірлер: 71
@lubanatafzeel273
@lubanatafzeel273 Жыл бұрын
Your teaching technique is very nice thanx for uploading software testing course 👍
@bageshreeful
@bageshreeful 3 жыл бұрын
Good Instructor the way he explains.
@jayakarsappogu7301
@jayakarsappogu7301 2 жыл бұрын
sir ur way of explanation is very very easy to understand 🙏🙏🙏
@aneethms675
@aneethms675 2 жыл бұрын
Well explained sir ,its helpful 😍
@mohammedkaif5223
@mohammedkaif5223 Жыл бұрын
i loved your teaching way sir
@sonyveer1
@sonyveer1 3 жыл бұрын
Very well explained...superb
@lepakshirh7419
@lepakshirh7419 2 жыл бұрын
Super thank you so much sir keep teaching us sir I will watch ur videos frequently whenever I get free time to watch thanks for explanation 💐🤝🤝
@amitkumardas4735
@amitkumardas4735 3 жыл бұрын
Lots of learn from your video sir
@user-ni4bo4pi8p
@user-ni4bo4pi8p 3 ай бұрын
U r great and awesome explanation sir...today I got a clear picture of this topic sir..
@SoftwaretestingbyMKT
@SoftwaretestingbyMKT 3 ай бұрын
Thanks and welcome
@bakigbolahan6423
@bakigbolahan6423 3 ай бұрын
I love your teaching❤
@SoftwaretestingbyMKT
@SoftwaretestingbyMKT 3 ай бұрын
Thank you! 😃
@danishuddin9752
@danishuddin9752 2 жыл бұрын
Good explanation sir thank you!
@shrutim3234
@shrutim3234 2 жыл бұрын
Sir , i must say you have aced the skill of teaching !!!
@vamsimogili954
@vamsimogili954 4 жыл бұрын
bro ur videos super tq
@SoftwaretestingbyMKT
@SoftwaretestingbyMKT 4 жыл бұрын
Thanks a lot 🙏
@markapuramhari
@markapuramhari 3 жыл бұрын
Thank you for the nice video....
@imbukwa
@imbukwa Жыл бұрын
Thank you very much.
@surbhibishnoi1784
@surbhibishnoi1784 Жыл бұрын
very nice explaination
@muktanesaragi8340
@muktanesaragi8340 Жыл бұрын
Firstly thanku so much🙏 U explaining very well... Please can u do all the concepts off Java
@RajaRaj-du6zm
@RajaRaj-du6zm 3 жыл бұрын
Nice tutorial
@shaikkarim4991
@shaikkarim4991 Жыл бұрын
Hello my name afthar I am watching your video I like it and easy to understand
@nani-tb6dh
@nani-tb6dh 3 жыл бұрын
Great
@ribasoul
@ribasoul Жыл бұрын
On point
@sachinm4097
@sachinm4097 Жыл бұрын
Love from karnataka 😃
@sowmyadadsprincesskitchen8513
@sowmyadadsprincesskitchen8513 2 жыл бұрын
Awesome explanation sir
@SoftwaretestingbyMKT
@SoftwaretestingbyMKT 2 жыл бұрын
Thank you
@zarazianazane7651
@zarazianazane7651 2 жыл бұрын
Excellent
@SoftwaretestingbyMKT
@SoftwaretestingbyMKT 2 жыл бұрын
Thank you
@dhmilan6077
@dhmilan6077 2 жыл бұрын
OH nice I never understand it where I was in college...
@izmechandu0079
@izmechandu0079 2 жыл бұрын
Please do python full with selenium automation testing bro it's helpful of us waiting for ur reply thnks
@malnadshrusti3576
@malnadshrusti3576 3 жыл бұрын
💯✌
@atkuriajaykumar3701
@atkuriajaykumar3701 3 жыл бұрын
sir you are genius
@SoftwaretestingbyMKT
@SoftwaretestingbyMKT 3 жыл бұрын
❤❤
@babymira_80.55
@babymira_80.55 2 жыл бұрын
Sir whole OOPs concept please 🙏 it's too important
@tejasvimunimakula1287
@tejasvimunimakula1287 3 жыл бұрын
can we use final static at the same time??i mean "Final static"
@seemasingraul4063
@seemasingraul4063 2 жыл бұрын
Thank you so much
@SoftwaretestingbyMKT
@SoftwaretestingbyMKT 2 жыл бұрын
Thank you
@seemasingraul4063
@seemasingraul4063 2 жыл бұрын
@@SoftwaretestingbyMKT Do you teach JavaScript as well ?
@meghanasri4206
@meghanasri4206 4 жыл бұрын
Explain with real time scenario then we can understand concept still more in a better way .
@nikocreed8244
@nikocreed8244 3 жыл бұрын
Dont know if anyone gives a shit but if you are stoned like me during the covid times you can stream pretty much all of the new movies and series on InstaFlixxer. Been binge watching with my brother recently =)
@flynngatlin5310
@flynngatlin5310 3 жыл бұрын
@Niko Creed Yea, been using Instaflixxer for years myself :)
@laxmikanth534
@laxmikanth534 4 жыл бұрын
thanks for providing videos for java bro..excellent teaching..what is the 8th video u have uploaded bro?it is showing as private video
@SoftwaretestingbyMKT
@SoftwaretestingbyMKT 4 жыл бұрын
Welcome buddy. Are you still facing this? Because others are able to access.
@arunsabee2628
@arunsabee2628 2 жыл бұрын
For final variable whether we can use static?? Little confusing
@Shiny-potato123
@Shiny-potato123 3 жыл бұрын
sir , in global var we have static and instace var. does instance var means non-static?
@rupeshshivankar9871
@rupeshshivankar9871 Жыл бұрын
Ys
@krishnahiwale573
@krishnahiwale573 Жыл бұрын
Where so we use static variable and instance variable practically
@priyankasalunkhe4782
@priyankasalunkhe4782 Жыл бұрын
Can we have unassigned final variable?
@srinivasradhakrishnan6573
@srinivasradhakrishnan6573 3 жыл бұрын
Wat is the difference between static and instance?
@kmbhanuprasadgoud
@kmbhanuprasadgoud 3 жыл бұрын
Add collection topic in java playlist videos
@SoftwaretestingbyMKT
@SoftwaretestingbyMKT 3 жыл бұрын
Coming soon
@arunsabee2628
@arunsabee2628 2 жыл бұрын
For final variable whether we can use static??
@sanjeevchippalkatti5586
@sanjeevchippalkatti5586 Жыл бұрын
Yes you have to use static or else you will get error as "non-static variable a cannot be referenced from a static context"
@arati5764
@arati5764 3 жыл бұрын
Sir is Instance Variable also known as Non-static variable?
@rupeshshivankar9871
@rupeshshivankar9871 Жыл бұрын
Ys
@suganyavasudevan2261
@suganyavasudevan2261 8 ай бұрын
What is static variable if we mention static what it mean
@OptionTrader91
@OptionTrader91 2 жыл бұрын
As you explained in Variable and Data Video Lecture. that every datatype has different value. You write a progress in this video where you wrote. int a = 60; But Byte can store -128 to 127. So can we write Byte in place of int
@SoftwaretestingbyMKT
@SoftwaretestingbyMKT 2 жыл бұрын
Exactly we can
@OptionTrader91
@OptionTrader91 2 жыл бұрын
@@SoftwaretestingbyMKT okay thanks
@laxmikanth534
@laxmikanth534 4 жыл бұрын
Yaa bro still facing the same promblem..which concept you have uploaded?iam unable to watch the video
@SoftwaretestingbyMKT
@SoftwaretestingbyMKT 4 жыл бұрын
But this video is my 8th video of java and you are able to see this video right? No videos are private on my channel , all are public. More videos are yet to come. 😀
@laxmikanth534
@laxmikanth534 4 жыл бұрын
Yaa 8th video,Able to see..but cant play the video
@SoftwaretestingbyMKT
@SoftwaretestingbyMKT 4 жыл бұрын
Not sure why buddy. Because other are able to see it. 🤨
@laxmikanth534
@laxmikanth534 4 жыл бұрын
Bro can u tell me the topic which have uploaded ?so that i can read that concept through other websites..i dont want to miss u r any topics
@SoftwaretestingbyMKT
@SoftwaretestingbyMKT 4 жыл бұрын
It is types of variables in java. Can you please share the issue screenshot to my mail id mkumartiwari1710@gmail.com
@niharbuu4429
@niharbuu4429 4 жыл бұрын
Hi sir I am getting confuse what is static and Nonstatic ? Please elaborate it..
@SoftwaretestingbyMKT
@SoftwaretestingbyMKT 4 жыл бұрын
Video is coming soon. Will let you know once I upload video.
@niharbuu4429
@niharbuu4429 4 жыл бұрын
@@SoftwaretestingbyMKT Thank you..
Instance vs Local Variables in Java | Types of Variables in Java
33:09
Who has won ?? 😀 #shortvideo #lizzyisaeva
00:24
Lizzy Isaeva
Рет қаралды 62 МЛН
When You Get Ran Over By A Car...
00:15
Jojo Sim
Рет қаралды 29 МЛН
Scope of Variables - Local vs Global
11:12
Neso Academy
Рет қаралды 391 М.
This calling statement in Java or this()
14:27
SoftwaretestingbyMKT
Рет қаралды 17 М.
Variable and Datatype in Java | Java Variables and Data Types with EXAMPLE
11:29
Scope and Local Variables in Java
9:41
Neso Academy
Рет қаралды 83 М.