Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
    Bookmark Topic Watch Topic
  • New Topic

Best Java Memory Aid Contest

 
Juanjo Bazan
Ranch Hand
Posts: 231
  • Mark post as helpful
  • send pies
  • Report post to moderator
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
Posts: 102
  • Mark post as helpful
  • send pies
  • Report post to moderator
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 ]
 
Mike Gray
Ranch Hand
Posts: 31
  • Mark post as helpful
  • send pies
  • Report post to moderator
How about
I AM So Cool.
Which means -
INTERFACES can only have
ABSTRACT METHODS
or
SYMBOLIC CONSTANTS
 
Vikrama Sanjeeva
Ranch Hand
Posts: 760
  • Mark post as helpful
  • send pies
  • Report post to moderator
Hi,
Foreign Rules Can Never Be Infringe
Means:
Final Class Can Never Be Inherited
Bye,
Viki.
 
Vikrama Sanjeeva
Ranch Hand
Posts: 760
  • Mark post as helpful
  • send pies
  • Report post to moderator
Hi,
Faith And Avaricious Cannot Live Together.
for remembering,
Final And Abstract Cannot Live Together.
Bye,
Viki.
 
Vikrama Sanjeeva
Ranch Hand
Posts: 760
  • Mark post as helpful
  • send pies
  • Report post to moderator
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
Posts: 760
  • Mark post as helpful
  • send pies
  • Report post to moderator
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
Posts: 760
  • Mark post as helpful
  • send pies
  • Report post to moderator
Hi,

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

Bye,
Viki.
 
Jessica Sant
Sheriff
Posts: 4313
Android IntelliJ IDE Java
  • Mark post as helpful
  • send pies
  • Report post to moderator
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
Posts: 760
  • Mark post as helpful
  • send pies
  • Report post to moderator
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
Posts: 8898
5
  • Mark post as helpful
  • send pies
  • Report post to moderator
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
 
Higgledy Smith
Ranch Hand
Posts: 192
  • Mark post as helpful
  • send pies
  • Report post to moderator
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
Posts: 63
  • Mark post as helpful
  • send pies
  • Report post to moderator
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
Posts: 17278
6
IntelliJ IDE Mac Spring
  • Mark post as helpful
  • send pies
  • Report post to moderator
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
 
Shiraz Khan
Ranch Hand
Posts: 51
  • Mark post as helpful
  • send pies
  • Report post to moderator
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
Posts: 90
  • Mark post as helpful
  • send pies
  • Report post to moderator
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
Posts: 90
  • Mark post as helpful
  • send pies
  • Report post to moderator
I apologise for my last reply (By mistake, I posted an answer in the wrong forum topic)
 
Irshad Nizami
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Report post to moderator
"let's try & catch once or more than once,
but do finally once & only once!"
 
Mark Spritzler
ranger
Sheriff
Posts: 17278
6
IntelliJ IDE Mac Spring
  • Mark post as helpful
  • send pies
  • Report post to moderator
OK Resurrection time over. Closing this thread.

Mark
 
    Bookmark Topic Watch Topic
  • New Topic