Do primitive types have a class representation

Showing Answers 1 - 13 of 13 Answers

Ashutosh Gupta

  • Jun 26th, 2005
 

Primitive data type has a wrapper class to present. 
 
Like for int - Integer 
for byte Byte, for long Long etc ...

  Was this answer useful?  Yes

1.The wrapper classes correlate to the primitive types.
2.Wrappers have two main functions.
    (a).To wrap primitives so that they can handled like objects.
    (b).To provide utility methods for primitives.
3.Once assigned the value of  wrapper classes cannot be changed.

Amit Patil

  • Sep 17th, 2007
 

Wrapper classes also have some static functions. So it is not essential they are related with a primitive value

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions