This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Certification Results and the fly likes SCJP Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Certification » Certification Results
Bookmark "SCJP" Watch "SCJP" New topic


Mathangi Shankar
Ranch Hand

Joined: Nov 01, 2004
Posts: 56

I want a small information. How would I convert the double value 0xffff to byte value? Please reply.

--------------------------------<br />SCJP1.4
Premil Jacob
Ranch Hand

Joined: Sep 10, 2004
Posts: 30
Well first of all I hope you understand that converting a double to byte would mean that some data would be lost.

To convert the double value to byte would be

byte b=(byte)0xffff

Thanks,<br />Premil<br /> <br />SCJP 1.4
I agree. Here's the link:
subject: SCJP
Similar Threads
how to reset the field after validation using annotations(Struts 2)
Doubt in EL Implicit Objects: Cookie
jsp bean problem
How to convert the for Loop to the equalent JSTL code in JSP
Tricky Question