Java Language Specification �10.8. There is a list of what the 8 letters are, but I can't seem to find it. I think they are B (byte) C D F I L S and Z (boolean). They are mostly the initials of the primitive types, but in upper case.
Joined: Oct 13, 2005
I have found a list of the letters in a book (Lemay and Cadenhead, teach yourself Java2 in 21 days, SAMS, 2/e, page 479).
B byte C char D double F float I int J long L object S short Z boolean
As you have seen from the link I gave earlier, there is an associated [ and [L is followed by the name of the class [ September 09, 2008: Message edited by: Campbell Ritchie ]
Originally posted by Kousik Majumder: e.g-> int obj = new int;
which class's object is obj?
The simple answer: int.class
You see it right: you can use .class with arrays as well. You can even use it with the primitive types: int.class will return the class that represents int in reflection. You can also find that one through Integer.TYPE.