JAVA DESIGN PATTERN Questions and Answers

Mention why access to the non-static variable is not allowed from static method in Java?

You cannot access non-static data from static context because non-static variable are associated with a specific instance of an object while static is not associated with any instance.