Java Interview Question and Answers Instance Variable and Local Variable In Java Difference

1,095 views · Published 17 November 2013 · 2:39 · Indexed 6 November 2026

Channel: Interview DOT · 2013 · Science & Technology

Watch on YouTube

Click here - https://www.youtube.com/channel/UCd0U_xlQxdZynq09knDszXA?sub_confirmation=1 to get notifications. Java Interview Question and Answers Instance Variable and Local Variable In Java Difference

  Instance variable can have all access modifier (private,protected,public) and some other non  access modifier,while local variable can have only one non access modifier ie final.

  Instance variable will get default value while local variable won't get any default value.

  Scope of the instance variable will be the Object while local variable will be visible inside method only.

A Job Portal
http://www.InterviewDot.com http://www.InterviewDot.com http://www.InterviewDot.com
One Click Dream Job - http://www.interviewdot.com/upload-resume/uploadresume.htm

Other Top Job Portals
www.Naukri.com
www.MonsterIndia.com
www.TimesJobs.com

Are you looking for a new Job ?
InterviewDot.com - A Job Portal
http://www.InterviewDot.com http://www.InterviewDot.com http://www.InterviewDot.com
One Click Dream Job - http://www.interviewdot.com/upload-resume/uploadresume.htm

More from this channel