aspose file tools
The moose likes Certification Results and the fly likes SCJP Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Certification » Certification Results
Reply Bookmark "SCJP" Watch "SCJP" New topic
Author

SCJP

Mathangi Shankar
Ranch Hand

Joined: Nov 01, 2004
Posts: 56
Hi,

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: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: SCJP
 
Similar Threads
Tricky Question
how to reset the field after validation using annotations(Struts 2)
How to convert the for Loop to the equalent JSTL code in JSP
Doubt in EL Implicit Objects: Cookie
jsp bean problem