Skip to main content

Posts

Showing posts from June, 2011

Megabytes, Gigabytes, Terabytes... What Are They?

These terms are usually used in the world of computing to describe disk space, or data storage space, and system memory. For instance, just a few years ago we were describing hard drive space using the term Megabytes. Today, Gigabytes is the most common term being used to describe the size of a hard drive. In the not so distant future, Terabyte will be a common term. But what are they? This is where it gets quite confusing because there are at least three accepted definitions of each term. According to the IBM Dictionary of computing, when used to describe disk storage capacity, a megabyte is 1,000,000 bytes in decimal notation. But when the term megabyte is used for real and virtual storage, and channel volume, 2 to the 20th power or 1,048,576 bytes is the appropriate notation. ...

Quick Notes: SCJP 1.6 (Sun Certified Java Programmer)

This articel contains quick notes which I did during reading  Sun Certified Programmer for Java 6 Study Guide - SCJP. Kathy Sierra, Bert Bates. Also it was extended with some additional notes from official Java doc API which are not required for SCJP 6. If you gonna pass SCJP exam - it will be the best crib.    1           DECLARATION & ACCESS CONTROL 1.1       Ranges of Numeric Primitives Type Bits Bytes Min. Range -2 (bits-1) Max. Range 2 (bits-1) -1 byte 8 1 -2 7 2 7 -1 short 16 2 -2 15 2 15 -1 int 32 4 -2 31 2 31 -1 float 32 4 n/a n/a long 64 8 -2 63 2 63 -1 double 64 8 n/a n/a 1.2         Comparison of modifiers on variables vs. methods Local Variables Non-local Variables Methods final fi...