jQuery in Action, 2nd edition*
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes Best Java Memory Aid Contest Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Reply locked New topic
Author

Best Java Memory Aid Contest

Juanjo Bazan
Ranch Hand

Joined: Feb 04, 2002
Posts: 231
I always have to repeat to my new java students the same
"JAVA INFO".
It stands for:
Java
Arrays and
Vectors
Are
Integer-
Numbered
From
0
HTH
Juanjo
[ January 07, 2003: Message edited by: Juanjo Bazan ]
Prosenjit Banerjee
Ranch Hand

Joined: Dec 18, 2002
Posts: 102
Welcome to my small zoo. Here I only keep different kind of birds. I have some big paCkAGEs, sorry CAGEs, over here in which I keep birds in pairs. i.e., a cage contains birds of different classes and one pair for each class in a cage. If a pair gives birth to babies, I normally transfer the babies to another cage.
I had been noticed a peculear behaviour in each family. Who in my zoo is allowed to touch (and love ) the lady in a family is restricted. Some are allowed to touch by any bird and some are by only by the member of her family (her husband). Noticing such an interesting thing I kept attatching a label to all the females. The labels went like public, private, protected, default (for default I usually attatch a blank label) and so.
One day suddenly I heard a male bird talking to its wife. It was trying to explain about the meaning of the labels. It was saying:

O my dearling, listen to me, I've got the trick!
If everybody loves you then you are public.
If it's not everybody but all in this cage,
Then you are said to be default to our paCkAGE;
If also our child kisses your head,
You are then nothing but known as protected.
If everybody but me only hate,
Label on you then will be private.
O dearling, why are you showing you rage?
Lets go to sleep in our sweet-home-cage

[ January 07, 2003: Message edited by: Prosenjit Banerjee ]

Always say the TRUTH only
Mike Gray
Ranch Hand

Joined: Feb 26, 2002
Posts: 31
How about
I AM So Cool.
Which means -
INTERFACES can only have
ABSTRACT METHODS
or
SYMBOLIC CONSTANTS


'Some people have a way with words. Other people . . . not have a way I guess.' - Steve Martin
Vikrama Sanjeeva
Ranch Hand

Joined: Sep 02, 2001
Posts: 756
Hi,
Foreign Rules Can Never Be Infringe
Means:
Final Class Can Never Be Inherited
Bye,
Viki.


Count the flowers of your garden, NOT the leafs which falls away!
Prepare IBM Exam 340 by joining http://groups.yahoo.com/group/IBM340Exam/
Vikrama Sanjeeva
Ranch Hand

Joined: Sep 02, 2001
Posts: 756
Hi,
Faith And Avaricious Cannot Live Together.
for remembering,
Final And Abstract Cannot Live Together.
Bye,
Viki.
Vikrama Sanjeeva
Ranch Hand

Joined: Sep 02, 2001
Posts: 756
Hi,
I remember when I was studying OOP using Java course, some of my class fellows were really confused about who can access private & public members & who can not!.There was a loud debate/discussion was going b/w them.I was luckily the only SCJP in my class.Therefore they came to me and ask,
"What is this hell?? ...who will access private and public and who will not??...". I just stuck and thought how I will explain to these firing guys

I suddenly asked them:
"Who can touch your private members of body?
They said we ourself offcourse!.
Then i asked:
Who can touch your public members like hand?
They said, every one offcourse!."
After this they never forget who can access and who cannot access private and public members.

Bye,
Viki.
NOTE:I gave this example b/c they are my friends.But i think i couldn't if i were on the stage of a class
So be cautioned Kathy and Bert to use this in ur coming book
Vikrama Sanjeeva
Ranch Hand

Joined: Sep 02, 2001
Posts: 756
Hi,

Prime minister Can Never Be A Defeatist
Defeatist Is Not The Property Of A Programmer
But Programmer Can Be A Pugilist!
For remembering,
Access modifier sequence:
private--->default---->protected---->public

Hope it helps..
Bye,
Viki.
Vikrama Sanjeeva
Ranch Hand

Joined: Sep 02, 2001
Posts: 756
Hi,

Keeping Multiple Wifes Is Not Good,
Therefore Multiple Inheritnece Is Not
Allowed!

Bye,
Viki.
Jessica Sant
Sheriff

Joined: Oct 17, 2001
Posts: 4313

Originally posted by Vikrama Sanjeeva:
Keeping Multiple Wifes Is Not Good,
Therefore Multiple Inheritnece Is Not
Allowed!


aahhhh but what if you're a practicing interface?
Vikrama Sanjeeva
Ranch Hand

Joined: Sep 02, 2001
Posts: 756
Hi,
Originally posted by Jessica Sant:

aahhhh but what if you're a practicing interface?

May be keeping Multiple husbands are allowed
Well, for interface, as it means a contract.So a good remembering phrase for multiple interface implementation may be:
Having Multiple Contracts Signed Is Allowed
Having Multiple Interface Implemented Is
Allowed!
.

Bye,
Viki.
Bert Bates
author
Sheriff

Joined: Oct 14, 2002
Posts: 8815
    
    5
Ding !
Ok folks, time's up, pencils down !
Thank you all for your wonderful Java Memory Aids ! Now Kathy and I have to print out all of these entries, retire to the soundproof judge's room, and go into ponderous deliberations.
When we emerge (sometime later today), we will announce our three winners!
Thanks again ! we're blown away!
-Bert and Kathy


Spot false dilemmas now, ask me how!
(If you're not on the edge, you're taking up too much room.)
Higgledy Smith
Ranch Hand

Joined: Mar 07, 2006
Posts: 192
Originally posted by Prosenjit Banerjee:
Thanks Barry. You have reminded me about assert. Since, it is not in JLS 2nd edition I did not include it. Here I am including it :



[ January 02, 2003: Message edited by: Prosenjit Banerjee ]


Your mnemonic is missing enum, now in Java 5.0.
Tamara Lopez
Ranch Hand

Joined: Feb 21, 2006
Posts: 63
hi
seeing as the topic was brought back up, i'll add a memory aid. they were good to read!
Methods to remember in String (so as to not confuse them with StringBuilder/StringBuffer methods in the real exam)
Come Look, Complete List (of) Extremely Useful String Stuff To Remember:

charAt(), toLowerCase(), concat(), length(), equalsIgnoreCase(), toUpperCase(), substring(), toString(), trim(), replace()
Mark Spritzler
ranger
Sheriff

Joined: Feb 05, 2001
Posts: 17250
    
    6

Originally posted by Higgledy Smith:


Your mnemonic is missing enum, now in Java 5.0.


Um, this is an old old thread. Please try to refrain from resurrecting old threads. It really confuses people, and most of the time the ones that had originally posted aren't around to respond.

Mark


Perfect World Programming, LLC - Two Laptop Bag - Tube Organizer
How to Ask Questions the Smart Way FAQ
Shiraz Khan
Ranch Hand

Joined: Mar 20, 2006
Posts: 51
Regarding class accessibility modifiers I remember the following sentence which is literally very true :

Public can not be Protected by the Default police but by Private security agencies.
Andy James
Ranch Hand

Joined: Aug 22, 2005
Posts: 90
When a postfix operator is used as part of an expression, the value of the variable in the expression is used before incrementing it. (That's how Java works!)

regards
Andy

-------------------
Prove your learning.
Andy James
Ranch Hand

Joined: Aug 22, 2005
Posts: 90
I apologise for my last reply (By mistake, I posted an answer in the wrong forum topic)
Irshad Nizami
Greenhorn

Joined: Jan 31, 2006
Posts: 4
"let's try & catch once or more than once,
but do finally once & only once!"
Mark Spritzler
ranger
Sheriff

Joined: Feb 05, 2001
Posts: 17250
    
    6

OK Resurrection time over. Closing this thread.

Mark
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Best Java Memory Aid Contest