What is the difference between instance variable & local variable in Java?
Watch the answer for this Selenium Interview Question in a detailed manner in the below youtube video:
Note: Don’t forget to subscribe to my Youtube channel here: Click here
Notes used for explanation in this Youtube video are provided after the video:
Notes used in the above Youtube Video:
There are two types of Variables:
- > Local Variables
- – A variable which is declared inside the method is called a local variable (Demonstrate here)
- > Instance Variables
- – A variable which is declared inside the Class but outside the method is called Instance Variable (Demonstrate here)
- > For more Selenium Interview Questions and answers, continue to the next post (Click on Next Post link below)
- > Check complete Selenium Interview Questions list here (Click here)
Please leave your questions/comments/feedback below.
Happy Learning ?
On a mission to contribute to the Software Testing Community in all possible ways.