Question: what is the difference between a method and a class in java?
Answer: Originally Answered: What is the difference between class and method in Java? A class is a set of properties and behaviors that must be exhibited by any instance (object) of said class. The properties are called fields and the behaviors are called methods. Thus a method defines just one behavior of the class.