java class
A java class provides a template for objects that share common characteristics. Each class can contain attributes--static or instance variables that each object of a particular class possesses, and methods, which are written in Java and define the behavior of an object. You can invoke methods defined by the class or inherited by any classes extended from the class. When you create an object from a class, you are creating an instance of that class. The instance contains the fields of an object, which are known as its data, or state.
Copyright © 1996, 2010, Oracle and/or its affiliates. All rights reserved.
Oracle is a registered trademark of Oracle Corporation and/or its affiliates.
Other names may be trademarks of their respective owners.