Ernest Friedman-Hill wrote:
But for general Java development, it's terrible advice, as is much of what's in that document. In general, don't use that advice except to squeeze additional performance out of troublesome Android applications.
A somewhat more radical idea is to slice up multidimensional arrays into parallel single one-dimension arrays:
An array of ints is a much better than an array of Integers, but this also generalizes to the fact that two parallel arrays of ints are also a lot more efficient than an array of (int,int) objects. The same goes for any combination of primitive types.
If you need to implement a container that stores tuples of (Foo,Bar) objects, try to remember that two parallel Foo and Bar arrays are generally much better than a single array of custom (Foo,Bar) objects. (The exception to this, of course, is when you're designing an API for other code to access; in those cases, it's usually better to trade correct API design for a small hit in speed. But in your own internal code, you should try and be as efficient as possible.)
ravindra patil wrote:You need to declare good bad in double or float , as you have fefined it as integer its losing its precision values
check it out
Lukas Smith wrote:
Cameron Wallace McKenzie wrote:
I had this vision of all certified Java professionals wearing it once a year at Java One, sorta like war heroes wearing their medals on remembrance day, and then putting them away until the next conference.
So what about those people with:
SCJP, SCWCD, SCBCD, SCJD, SCEA?
Should they attach them all?
They would look like the generals
Cameron Wallace McKenzie wrote:The badge was highly overrated.
I looked at that link. What specifically explained the demise of the badge?
What will the successful candidate receive in their certification kit?
All certification kits include the following*:
A Sun certified certificate with the candidate's name and certification title.
An ID card with the candidate's name and certification title.
* Due to damage that lapel pins were causing to certificates in shipping, Sun has discontinued Certification lapel pins as part of the certification kit .