This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
just go through the java doc. In your first code 11 is "int" that is default type for integer type and there is constructor defined which take "int" and "int" is not automatically converted into byte . if you change your code to Byte y = new Byte((byte)11);// compiles fine
second code is perfectly fine there is a constructor defined Float(double value) in API just go through it.
"krishna" while we appreciate your responses to the questions on this forum, you are getting near the post count limit where we close your access to JavaRanch for disregarding our JavaRanch Naming Policy. So please change your display name immediately (in brief: <first name><space><family name> ;) .
(close) [ May 23, 2007: Message edited by: Barry Gaunt ]
Joined: Aug 28, 2006
I have changed my dispaly name. Is there any post count limit here? I really don't know that if yes, can you tell me or give the link where can i get that information.
Joined: Aug 03, 2002
Originally posted by krishna: I have changed my dispaly name. Is there any post count limit here? I really don't know that if yes, can you tell me or give the link where can i get that information.
You do not need to know about the post count exact limit when we lock your account when it has an invalid display name. You have just to worry about getting your display name changed.
Your display name seems to still be "krishna", what did you change it too? [ May 23, 2007: Message edited by: Barry Gaunt ]