Structure of a Java Application, Introduction to Classes and Object
In Java, you can either create a Stand-alone application or a networked application. a stand-alone application uses the resources of a local computer while a networked application uses resources available over a network. Classes and object form the basis of the structure of a Java application. A Java application consists of a class, in which you declare the data members and methods. An object is an instance of a class and it encapsulates the method and data members of a class.
Creating Classes, Objects and Methods
All concepts that you need to implement in a Java application is encapsulated within a class. A class defines the attributes and methods of objects of the same type sharing common characteristics.