View Single Post
  #9  
Old 08-29-2007, 06:20 AM
itbarota itbarota is offline
D-Web Architect
 
Join Date: Jun 2007
Posts: 542
itbarota is on a distinguished road
Default Re: Java/J2EE interview Questions

What are Class, Constructor and Primitive data types?

*Class is a template for multiple objects with similar features and it is a blue print for objects. It defines a type of object according to the data the object can hold and the operations the object can perform.
*Constructor is a special kind of method that determines how an object is initialized when created.
*Primitive data types are 8 types and they are: byte, short, int, long, float, double, boolean, char.
Reply With Quote