[Home] | [Java Mnemonics] | [Study Tips] | [Mock Exams] | [Suggested Books & Videos] | [Java Jobs] | [Links] | [Feedback]
Java.CertifiedProgrammer.com

Java Mnemonics

Mnemonics are study aids to help you memorize bits of information. In studying for the SCJP2 exam, I've run across several techniques as well as come up with some of my own. Ususally, the funnier they are, the easier they are to remember.

These are pretty lame, so if you have any of your own, or would like to suggest something better than below, please drop me an e-mail.

Don't forget to check out the mock exams section.

Concept

Mnemonic Device

 
Range of Primitive integral types

Data Type

Width

Range

Remember

byte 8 -28-1 to 28-1-1 When see "byte" think "bite" --> "ate" --> "8" (width of primitive)
short 16 -216-1 to 216-1 - 1 ???
int 32 -232-1 to 232-1-1 int has three letters --> width has a "3" --> 32
long 64 -264-1 to 264-1-1 long has four letters --> width has a "4" --> 64

Sample Question:
What is the range of int primitive data type?
A. -232 to 232
B. -215 to 215-1
C. -216 to 216
D. -216 to 216-1
E. -232 to 232-1

 
Order of calls to graphics methods As suggested by Marcus Green,
repaint -> update -> paint

Remember:

Really Ugly Painting

 
Precedence of operators As found in Bruce Eckel's Thinking in Java, page 111:

Unary, Arithmetic, Shift, Comparison, Bitwise, Short-circiut, Ternary, Assignment

Remember:

Ulcer Addicts Really Like C A Lot

 
Conversion order of Primitives byte -> short -> int -> long -> float -> double
(char -> int)
b.s I Love F*&@ing Dell,
Can't I?
 

[Home] | [Java Mnemonics] | [Study Tips] | [Mock Exams] | [Suggested Books & Videos] | [Java Jobs] | [Links] | [Feedback]

Send mail to Webmaster with questions or comments about this web page.
Site Last Modified: November, 2000
Java.CertifiedProgrammer.com
directNIC Search
Hosted by directNIC.com