Saturday, 10 September 2011

what is class? java interview questions....

Ans:
  •  java class is a specification of how to construct something and also called template.
  •  Java classes contain multiple fields , variables and methods.
  • The structure of a class and its subclasses is called the class hierarchy.

syntax:

         class classname{

              //tour own code

         }

No comments: