Every object have limitation of access, so any object which created inside of opening and closing brackets {} than its accessibility is limited, so it's known as local object, but object declared outside of methods (in class) then it's become common for all methods so it's known as a global object.