Software Engineering Scope of Variables in Java Programming Scope of a variable in Java defines how a specific variable is accessible within the program or across classes. It is defined by the use of private, protected and public.