As i know float is a primitive and double is a wrapper class
You are wrong. Both float and double are primitive.
type of double is float
Again Wrong...double and float are two separate primitive types.
what about Float
Well every primitive type has a corresponding Wrapper class..this is a list of primitive types and their corresponding wrapper classes.
+-----------+---------+
| primitive | wrapper |
+-----------+---------+
| boolean | Boolean |
| byte | Byte |
| short | Short |
| char |Character|
| int | Integer |
| long | Long |
| float | Float |
| double | Double |
+-----------+---------+
[ August 08, 2008: Message edited by: Ankit Garg ]