Oracle: "The Java Tutorials: What Is a Class?"
Please read this article. The Java Tutorials are practical guides for programmers who want to use the Java programming language to create applications. They include hundreds of complete, working examples, and dozens of lessons. Groups of related lessons are organized into "trails." This tutorial from Oracle gives an overview of a class in Java.
Click http://download.oracle.com/javase/tutorial/java/concepts/class.html link to open resource.