![]() |
| Home | Tech FAQ | Interview Questions | Placement Papers | Tech Articles | Learn | Freelance Projects | Online Testing | Geeks Talk | Job Postings | Knowledge Base | Site Search | Add/Ask Question |
![]() Related Questions Yes, a double value can be cast to a byte. Latest Answer : Hi could you please explain how can a double valuebe able to convert in to byte since the memory value of double(16 byte) is greater than a byte. ... No, an object cannot be cast to a primitive value. Latest Answer : Ys its possibleByte b = new Byte("28"); double dd = b.doubleValue(); ... An object reference be cast to an interface reference when the object implements thereferenced interface. What is the difference between the Reader/Writer class hierarchy and theInputStream/OutputStream class hierarchy The Reader/Writer class hierarchy is character-oriented, and theInputStream/OutputStream class hierarchy is byte-oriented. Name the eight primitive Java types.The eight primitive types are byte, char, short, int, long, float, double, and boolean. There are two types of casting, casting between primitive numeric types and castingbetween object references. Casting between numeric types is used to convert largervalues, such as double values, to smaller Latest Answer : By definition, Casting is the way of converting one data type into another. ... The result is a String object. Numeric promotion is the conversion of a smaller numeric type to a larger numeric type,so that integer and floating-point operations may take place. In numerical promotion,byte, char, and short values The result is a String object. Yes, a double value can be cast to a byte.
Sponsored Links
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||